[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&#39;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&#39;s stop option is handled with a &quot;killall&quot; but I&#39;m wondering if there is a more graceful way to stop the webui? For example, I wouldn&#39;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&#39;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&#39;s sort of what I was thinking but maybe there&#39;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 &quot;$1&quot; in<br>&#39;start&#39;)<br>&nbsp; $OGoROOT/Tools/ogo-webui-1.1 \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -WOPort 20000 \
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -WOHttpAllowHost &#39;(&quot;<a href="http://127.0.0.1">127.0.0.1</a>&quot;, localhost)&#39; \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt; $OGoROOT/logs/webui-log 2&gt;&amp;1 &amp;<br>&nbsp;&nbsp;&nbsp; # -WOWatchDogEnabled YES&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \<br>
&nbsp;&nbsp;&nbsp; # -LSDebuggingEnabled&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; YES<br>&nbsp; ;;<br>&#39;stop&#39;)<br>&nbsp; killall ogo-webui-1.1<br>&nbsp; ;;<br>*)<br>&nbsp; echo &quot;usage $0 start|stop&quot;<br>esac<br><br>

------=_Part_41324_5903015.1177892279378--