Clean up some old, possibly stale, files when restarting php-fpm

This commit is contained in:
jim-p 2015-02-20 13:42:23 -05:00
parent e0c1bfd742
commit e5a67d33db

View File

@ -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"