]> git.pld-linux.org Git - packages/apache.git/commitdiff
- provide full path to --pidfile as start-stop-daemon doesn't handle
authorTomasz Pala <gotar@pld-linux.org>
Mon, 16 Feb 2009 00:54:56 +0000 (00:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  /var/run relative ones and functions don't support expanding

Changed files:
    apache.init -> 1.64

apache.init

index c6f40f9e5702969c613a708f38c36c74482bf6fa..a69b244fe8b26d0d6e089f39878b4ba4e896e3b2 100644 (file)
@@ -49,7 +49,7 @@ start() {
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/httpd ]; then
                msg_starting "$SVC_NAME"
-               daemon /usr/sbin/httpd.${HTTPD_MPM} $CFG $HTTPD_OPTS
+               daemon --pidfile /var/run/httpd.pid /usr/sbin/httpd.${HTTPD_MPM} $CFG $HTTPD_OPTS
                RETVAL=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/httpd
        else
@@ -61,7 +61,7 @@ stop() {
        # Stop daemons.
        if [ -f /var/lock/subsys/httpd ]; then
                msg_stopping "$SVC_NAME"
-               killproc --pidfile httpd.pid httpd.${HTTPD_MPM}
+               killproc --pidfile /var/run/httpd.pid httpd.${HTTPD_MPM}
                rm -f /var/lock/subsys/httpd /var/run/httpd.pid /var/run/httpd.loc* >/dev/null 2>&1
        else
                msg_not_running "$SVC_NAME"
@@ -82,10 +82,10 @@ RETVAL=0
 # See how we were called.
 case "$1" in
   start)
-       start
+       start
        ;;
   stop)
-       stop
+       stop
        ;;
   status)
        status httpd.${HTTPD_MPM}
This page took 0.038081 seconds and 4 git commands to generate.