currently /var/run/php is cleaned up by php session cleanup script
which cleans up everything in that dir, not only php session files
so as consequence this removes php-fpm pidfiles and service restart
remains confused what to stop.
php-wsdl cache files get nuked by the same problem, so those could be
moved to /var/cache/php, so they could survive reboots
probably it's wrong to have /var/run/php as php-session storage (note
the generic namem it's not /var/run/php/sessions etc), but changing that
would need more efforts, as need to support old and new configuration,
and each php sapi could have different config (they have different
php.ini (or equivalent) files)
; Note: the default prefix is @EXPANDED_LOCALSTATEDIR@
; Default Value: none
-;pid = run/php-fpm.pid
-+pid = /var/run/php/@processname@.pid
++pid = /var/run/@processname@.pid
; Error log file
; If it's set to "syslog", log is sent to syslogd instead of being written
#
# processname: php-fpm
# config: /etc/php/php-fpm.conf
-# pidfile: /var/run/php/fpm.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?
-/var/log/@processname@.log
+/var/log/php/@processname@.log
{
notifempty
missingok