[OGo-Users] Gracefully shutting down the webui + WOWatchDogEnabled + log rotation
Tabitha McNerney
users@opengroupware.org
Sun, 29 Apr 2007 14:17:59 -1000
------=_Part_41324_5903015.1177892279378
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hello everyone,
Thanks for bearing with my batch of questions today. It is a sunny day for
OpenGroupware on my server! I have written a rc script that starts the
webui. It is simple and works fine (so far no problems, but I haven't used
OGo extensively yet but I am preparing to use it quite a bit from here on
out). I have copied it below in this email.
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.
Also, what can one do with the WOWatchDogEnabled option? I must have written
this script last year by copying someone else's script or looking at some
documentation or mailing list post somewhere, but I never dug any further
into what WOWatchDogEnabled really does. Can I use a tool such as Monit to
monitor the webui app? That's sort of what I was thinking but maybe there's
something better than monit?
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.
Any suggestions and wisdom from the kind people who have been running
OpenGroupware for a long time would be kindly appreciated!
Much thanks,
T.M.
--------------------------------------------------------------------------------------
#!/bin/bash
#
#
# OpenGroupware.org WebUI startup script
source /Users/ogo/.bash_profile
case "$1" in
'start')
$OGoROOT/Tools/ogo-webui-1.1 \
-WOPort 20000 \
-WOHttpAllowHost '("127.0.0.1", localhost)' \
>> $OGoROOT/logs/webui-log 2>&1 &
# -WOWatchDogEnabled YES \
# -LSDebuggingEnabled YES
;;
'stop')
killall ogo-webui-1.1
;;
*)
echo "usage $0 start|stop"
esac
------=_Part_41324_5903015.1177892279378
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hello everyone,<br><br>Thanks for bearing with my batch of questions today. It is a sunny day for OpenGroupware on my server! I have written a rc script that starts the webui. It is simple and works fine (so far no problems, but I haven't used OGo extensively yet but I am preparing to use it quite a bit from here on out). I have copied it below in this email.
<br><br>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.
<br><br>Also, what can one do with the WOWatchDogEnabled option? I must have written this script last year by copying someone else's script or looking at some documentation or mailing list post somewhere, but I never dug any further into what WOWatchDogEnabled really does. Can I use a tool such as Monit to monitor the webui app? That's sort of what I was thinking but maybe there's something better than monit?
<br><br>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.
<br><br>Any suggestions and wisdom from the kind people who have been running OpenGroupware for a long time would be kindly appreciated!<br><br>Much thanks,<br><br>T.M.<br><br>--------------------------------------------------------------------------------------
<br><br>#!/bin/bash<br>#<br>#<br># OpenGroupware.org WebUI startup script<br><br>source /Users/ogo/.bash_profile<br><br>case "$1" in<br>'start')<br> $OGoROOT/Tools/ogo-webui-1.1 \<br> -WOPort 20000 \
<br> -WOHttpAllowHost '("<a href="http://127.0.0.1">127.0.0.1</a>", localhost)' \<br> >> $OGoROOT/logs/webui-log 2>&1 &<br> # -WOWatchDogEnabled YES \<br>
# -LSDebuggingEnabled YES<br> ;;<br>'stop')<br> killall ogo-webui-1.1<br> ;;<br>*)<br> echo "usage $0 start|stop"<br>esac<br><br>
------=_Part_41324_5903015.1177892279378--