- if [ -f /var/lock/subsys/php-fpm ]; then
- # Stop daemons.
- msg_stopping "PHP FastCGI Process Manager"
- # always gracefully shut down php-fpm
- /sbin/start-stop-daemon -q --stop -s QUIT --retry QUIT/600/TERM/10 --pidfile $pidfile
- [ "$?" -eq 0 ] && ok || fail
- rm -f /var/lock/subsys/php-fpm
- else