From e5a67d33db79a7efc0de100ca1fa838753c517c7 Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 20 Feb 2015 13:42:23 -0500 Subject: [PATCH] Clean up some old, possibly stale, files when restarting php-fpm --- etc/rc.php-fpm_restart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/rc.php-fpm_restart b/etc/rc.php-fpm_restart index 79ae41decb..fff4455988 100755 --- a/etc/rc.php-fpm_restart +++ b/etc/rc.php-fpm_restart @@ -8,6 +8,8 @@ sleep 2 # /usr/local/etc/php.ini and /usr/local/lib/php.ini /etc/rc.conf_mount_rw /etc/rc.php_ini_setup 2>/tmp/php_errors.txt +/bin/rm -f /var/run/php-fpm.pid 2>/dev/null +/bin/rm -f /var/run/php-fpm.socket 2>/dev/null /etc/rc.conf_mount_ro echo ">>> Restarting php-fpm" | /usr/bin/logger -p daemon.info -i -t rc.php-fpm_restart echo ">>> Starting php-fpm"