summaryrefslogtreecommitdiffstats
path: root/httpd.init
diff options
context:
space:
mode:
authorcvsdist <cvsdist@fedoraproject.org>2004-09-09 06:17:21 +0000
committercvsdist <cvsdist@fedoraproject.org>2004-09-09 06:17:21 +0000
commit3ebc88dfd083826ba49824536f9f5e7145d67836 (patch)
tree7519e7da0497391db7f95e4b80cfc4a94146d9aa /httpd.init
parent6356941d7174ac4cb94ba9bb2d6fe71849128384 (diff)
downloadhttpd-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-xhttpd.init10
1 files changed, 6 insertions, 4 deletions
diff --git a/httpd.init b/httpd.init
index cf65f48..698c66f 100755
--- a/httpd.init
+++ b/httpd.init
@@ -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=$?
;;
*)