]> TLD Linux GIT Repositories - packages/php.git/blobdiff - php-fpm.init
- updated to 5.4.45
[packages/php.git] / php-fpm.init
index 125922be2c5d652452f96586ecfdf1c2a0657243..020fc7896fd9a1fc0af7bb4413aebe2401affbc3 100644 (file)
@@ -1,12 +1,12 @@
 #!/bin/sh
 #
-# php-fpm      PHP FastCGI Process Manager
+# @processname@        PHP FastCGI Process Manager
 #
 # chkconfig:   345 80 30
 #
 # description: PHP FastCGI Process Manager
 #
-# processname: php-fpm
+# processname: @processname@
 # config:      /etc/php/php-fpm.conf
 # pidfile:     /var/run/@processname@.pid
 #
@@ -25,7 +25,7 @@ pidfile=${pidfile:-/var/run/@processname@.pid}
 start() {
        # Check if the service is already running?
        if [ -f $lockfile ]; then
-               msg_already_running "PHP FastCGI Process Manager"
+               msg_already_running "PHP FastCGI Process Manager (@processname@)"
                return
        fi
 
@@ -37,13 +37,13 @@ start() {
 
 stop() {
        if [ ! -f $lockfile ]; then
-               msg_not_running "PHP FastCGI Process Manager"
+               msg_not_running "PHP FastCGI Process Manager (@processname@)"
                return
        fi
 
        # Stop daemons.
-       msg_stopping "PHP FastCGI Process Manager"
-       # always gracefully shut down php-fpm
+       msg_stopping "PHP FastCGI Process Manager (@processname@)"
+       # always gracefully shut down @processname@
        /sbin/start-stop-daemon -q --stop -s QUIT --retry QUIT/600/TERM/10 --pidfile $pidfile
        [ "$?" -eq 0 ] && ok || fail
        rm -f $lockfile
@@ -53,19 +53,19 @@ reload() {
        local sig=${1:-HUP}
        local retnr=${2:-7}
        if [ ! -f $lockfile ]; then
-               msg_not_running "PHP FastCGI Process Manager"
+               msg_not_running "PHP FastCGI Process Manager (@processname@)"
                RETVAL=$retnr
                return
        fi
 
-       msg_reloading "PHP FastCGI Process Manager"
-       killproc --pidfile $pidfile php-fpm -$sig
+       msg_reloading "PHP FastCGI Process Manager (@processname@)"
+       killproc --pidfile $pidfile @processname@ -$sig
        RETVAL=$?
 }
 
 condrestart() {
        if [ ! -f $lockfile ]; then
-               msg_not_running "PHP FastCGI Process Manager"
+               msg_not_running "PHP FastCGI Process Manager (@processname@)"
                RETVAL=$1
                return
        fi