wok-6.x rev 18179
Apache: fix init script
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 05 12:26:54 2015 +0200 (2015-07-05) |
parents | 7dd80db4b5f9 |
children | d6fc3dbec1de |
files | apache/stuff/apache |
line diff
1.1 --- a/apache/stuff/apache Sat Jul 04 11:23:16 2015 +0200 1.2 +++ b/apache/stuff/apache Sun Jul 05 12:26:54 2015 +0200 1.3 @@ -8,13 +8,13 @@ 1.4 1.5 NAME=Apache 1.6 DESC="Apache Web Server" 1.7 -DAEMON=/usr/bin/apache 1.8 +DAEMON=/usr/bin/apachectl 1.9 OPTIONS= 1.10 -PIDFILE=/var/run/apache/apache.pid 1.11 +PIDFILE=/var/run/apache/httpd.pid 1.12 1.13 case "$1" in 1.14 start) 1.15 - if active_pidfile $PIDFILE apache ; then 1.16 + if active_pidfile $PIDFILE httpd ; then 1.17 echo "$NAME already running." 1.18 exit 1 1.19 fi 1.20 @@ -23,7 +23,7 @@ 1.21 status 1.22 ;; 1.23 stop) 1.24 - if ! active_pidfile $PIDFILE apache ; then 1.25 + if ! active_pidfile $PIDFILE httpd ; then 1.26 echo "$NAME is not running." 1.27 exit 1 1.28 fi 1.29 @@ -33,7 +33,7 @@ 1.30 status 1.31 ;; 1.32 reload) 1.33 - if ! active_pidfile $PIDFILE apache ; then 1.34 + if ! active_pidfile $PIDFILE httpd ; then 1.35 echo "$NAME is not running." 1.36 exit 1 1.37 fi 1.38 @@ -42,7 +42,7 @@ 1.39 status 1.40 ;; 1.41 restart) 1.42 - if ! active_pidfile $PIDFILE apache ; then 1.43 + if ! active_pidfile $PIDFILE httpd ; then 1.44 echo "$NAME is not running." 1.45 exit 1 1.46 fi