#
# processname: @processname@
# config: /etc/php/php-fpm.conf
-# pidfile: /var/run/php/@processname@.pid
+# pidfile: /var/run/@processname@.pid
#
# Source function library
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?
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
}