summaryrefslogtreecommitdiff
path: root/extra/php/rc.d.php-fpm
diff options
context:
space:
mode:
Diffstat (limited to 'extra/php/rc.d.php-fpm')
-rw-r--r--extra/php/rc.d.php-fpm32
1 files changed, 9 insertions, 23 deletions
diff --git a/extra/php/rc.d.php-fpm b/extra/php/rc.d.php-fpm
index 54bcf4d5b..3b3ec20de 100644
--- a/extra/php/rc.d.php-fpm
+++ b/extra/php/rc.d.php-fpm
@@ -49,8 +49,6 @@ test_config() {
stat_die
fi
- [ -d /var/run/php-fpm ] || install -d -m755 /var/run/php-fpm
-
stat_done
}
@@ -66,7 +64,7 @@ case "$1" in
exit 1
fi
- wait_for_pid created /var/run/php-fpm/php-fpm.pid
+ wait_for_pid created /run/php-fpm/php-fpm.pid
if [ -n "$try" ] ; then
stat_fail
@@ -81,14 +79,14 @@ case "$1" in
test_config
stat_busy 'Gracefully shutting down php-fpm'
- if [ ! -r /var/run/php-fpm/php-fpm.pid ] ; then
+ if [ ! -r /run/php-fpm/php-fpm.pid ] ; then
stat_fail
exit 1
fi
- kill -QUIT `cat /var/run/php-fpm/php-fpm.pid`
+ kill -QUIT `cat /run/php-fpm/php-fpm.pid`
- wait_for_pid removed /var/run/php-fpm.pid
+ wait_for_pid removed /run/php-fpm.pid
if [ -n "$try" ] ; then
stat_fail
@@ -102,14 +100,14 @@ case "$1" in
force-quit)
stat_busy 'Terminating php-fpm'
- if [ ! -r /var/run/php-fpm/php-fpm.pid ] ; then
+ if [ ! -r /run/php-fpm/php-fpm.pid ] ; then
stat_fail
exit 1
fi
- kill -TERM `cat /var/run/php-fpm/php-fpm.pid`
+ kill -TERM `cat /run/php-fpm/php-fpm.pid`
- wait_for_pid removed /var/run/php-fpm/php-fpm.pid
+ wait_for_pid removed /run/php-fpm/php-fpm.pid
if [ -n "$try" ] ; then
stat_fail
@@ -129,24 +127,12 @@ case "$1" in
test_config
stat_busy 'Reload service php-fpm'
- if [ ! -r /var/run/php-fpm/php-fpm.pid ] ; then
- stat_fail
- exit 1
- fi
-
- kill -USR2 `cat /var/run/php-fpm/php-fpm.pid`
- stat_done
- ;;
-
- logrotate)
- stat_busy 'Reopen php-fpm log'
-
- if [ ! -r /var/run/php-fpm/php-fpm.pid ] ; then
+ if [ ! -r /run/php-fpm/php-fpm.pid ] ; then
stat_fail
exit 1
fi
- kill -USR1 `cat /var/run/php-fpm/php-fpm.pid`
+ kill -USR2 `cat /run/php-fpm/php-fpm.pid`
stat_done
;;