[OGo-Users] Gracefully shutting down the webui + WOWatchDogEnabled + log rotation

Adam Tauno Williams users@opengroupware.org
Sun, 29 Apr 2007 21:57:22 -0400


> The script's stop option is handled with a "killall" but I'm wondering
> if there is a more graceful way to stop the webui? For example, I
> wouldn't want to do a killall in the middle of something important.
> Yet, I will need to bring my system down for maintenance. 

A -15 kill is a graceful shutdown; so nothing to worry about there.
Every operation in the database is wrapped in a transaction block so
even if you did interrupt something it will rollback and leave you in a
consistent state.
> 
> Also, what can one do with the WOWatchDogEnabled option? 

No longer required.

> really does. Can I use a tool such as Monit to monitor the webui app?

Don't see why not;  it will have to authenticate to tell you anything
useful.

> With a final question, how do other people normally handle logging the
> output from the webui? As my script below asserts, I am appending all
> output to a log file but I would love to be able to use Apache-like
> log rotation on my logs. 

The old copy-and-truncate should work fine.  Whatever is rotating your
Apache logs (Apache doesn't rotate logs, something else is doing this
for it) should work just fine with your OGo logs.
> 
> Any suggestions and wisdom from the kind people who have been running
> OpenGroupware for a long time would be kindly appreciated!