[system] / trunk / webwork-modperl / bin / wwapachectl.dist Repository:
ViewVC logotype

View of /trunk/webwork-modperl/bin/wwapachectl.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 800 - (download) (annotate)
Tue Mar 25 20:16:26 2003 UTC (10 years, 1 month ago) by sh002i
File size: 550 byte(s)
updated usage() to reflect actual accepted syntax.
-sam

    1 #!/bin/sh
    2 
    3 # Set the following values to correspond to your local configuration
    4 HTTPD=/usr/local/sbin/httpd
    5 WEBWORKROOT=/home/yourname/webwork-modperl
    6 
    7 CONFIG=$WEBWORKROOT/conf/httpd-wwmp.conf
    8 PID=$WEBWORKROOT/logs/httpd.pid
    9 
   10 usage() {
   11   echo "$0 { start | stop | restart | graceful | configtest }"
   12 }
   13 
   14 case $1 in
   15   start)
   16     "${HTTPD}" -f "${CONFIG}"
   17     ;;
   18   stop)
   19     kill -TERM `cat "${PID}"`
   20     ;;
   21   restart)
   22     kill -HUP `cat "${PID}"`
   23     ;;
   24   graceful)
   25     kill -USR1 `cat "${PID}"`
   26     ;;
   27   configtest)
   28     "${HTTPD}" -t -f "${CONFIG}"
   29     ;;
   30   *)
   31     usage
   32     ;;
   33 esac

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9