]> git.pld-linux.org Git - packages/php.git/blobdiff - php-fpm.init
- remove obsolete patches
[packages/php.git] / php-fpm.init
index b44f905e4bcab06df5f81de15962f1aff7fcf997..d75da1c27f9780a6d299951fc6c366c7f01c1c3f 100644 (file)
@@ -8,7 +8,7 @@
 #
 # processname: @processname@
 # config:      /etc/php/php-fpm.conf
-# pidfile:     /var/run/php/@processname@.pid
+# pidfile:     /var/run/@processname@.pid
 #
 
 # Source function library
@@ -20,7 +20,7 @@
 configfile=/etc/php/php-fpm.conf
 lockfile=/var/lock/subsys/@processname@
 pidfile=$(sed -ne  's,^pid\s*=\s*\(.*\),\1,p' $configfile)
-pidfile=${pidfile:-/var/run/php/@processname@.pid}
+pidfile=${pidfile:-/var/run/@processname@.pid}
 
 start() {
        # Check if the service is already running?
@@ -30,7 +30,7 @@ start() {
        fi
 
        msg_starting "PHP FastCGI Process Manager (@processname@)"
-       daemon --pidfile $pidfile /usr/sbin/@processname@ --fpm-config $configfile
+       daemon --redirfds --pidfile $pidfile /usr/sbin/@processname@ --fpm-config $configfile
        RETVAL=$?
        [ $RETVAL -eq 0 ] && touch $lockfile
 }
This page took 0.042005 seconds and 4 git commands to generate.