diff options
| author | cvsdist <cvsdist@fedoraproject.org> | 2004-09-09 06:17:21 +0000 |
|---|---|---|
| committer | cvsdist <cvsdist@fedoraproject.org> | 2004-09-09 06:17:21 +0000 |
| commit | 3ebc88dfd083826ba49824536f9f5e7145d67836 (patch) | |
| tree | 7519e7da0497391db7f95e4b80cfc4a94146d9aa /httpd.init | |
| parent | 6356941d7174ac4cb94ba9bb2d6fe71849128384 (diff) | |
| download | httpd-3ebc88dfd083826ba49824536f9f5e7145d67836.tar.gz httpd-3ebc88dfd083826ba49824536f9f5e7145d67836.tar.xz httpd-3ebc88dfd083826ba49824536f9f5e7145d67836.zip | |
auto-import httpd-2.0.48-16.ent from httpd-2.0.48-16.ent.src.rpmhttpd-2_0_48-16_ent
Diffstat (limited to 'httpd.init')
| -rwxr-xr-x | httpd.init | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -29,6 +29,8 @@ INITLOG_ARGS="" apachectl=/usr/sbin/apachectl httpd=${HTTPD-/usr/sbin/httpd} prog=httpd +pidfile=${PIDFILE-/var/run/httpd.pid} +lockfile=${LOCKFILE-/var/lock/subsys/httpd} RETVAL=0 # check for 1.3 configuration @@ -57,7 +59,7 @@ start() { daemon $httpd $OPTIONS RETVAL=$? echo - [ $RETVAL = 0 ] && touch /var/lock/subsys/httpd + [ $RETVAL = 0 ] && touch ${lockfile} return $RETVAL } stop() { @@ -65,7 +67,7 @@ stop() { killproc $httpd RETVAL=$? echo - [ $RETVAL = 0 ] && rm -f /var/lock/subsys/httpd /var/run/httpd.pid + [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile} } reload() { echo -n $"Reloading $prog: " @@ -92,7 +94,7 @@ case "$1" in start ;; condrestart) - if [ -f /var/run/httpd.pid ] ; then + if [ -f ${pidfile} ] ; then stop start fi @@ -101,7 +103,7 @@ case "$1" in reload ;; graceful|help|configtest|fullstatus) - $apachectl $@ + $apachectl $OPTIONS $@ RETVAL=$? ;; *) |
