[system] / trunk / webwork2 / bin / wwapachectl.sample Repository:
ViewVC logotype

View of /trunk/webwork2/bin/wwapachectl.sample

Parent Directory Parent Directory | Revision Log Revision Log


Revision 638 - (download) (annotate)
Wed Nov 20 20:22:08 2002 UTC (10 years, 7 months ago) by malsyned
File size: 453 byte(s)
Added a template for controlling the per-user apache process
-Dennis

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9