|
Lines 11-17
Link Here
|
| 11 |
PHP_FPM_CONF="/etc/php/fpm-${PHPSLOT}/php-fpm.conf" |
11 |
PHP_FPM_CONF="/etc/php/fpm-${PHPSLOT}/php-fpm.conf" |
| 12 |
} |
12 |
} |
| 13 |
|
13 |
|
| 14 |
extra_commands="depend" |
14 |
extra_commands="depend configtest" |
| 15 |
extra_started_commands="reload" |
15 |
extra_started_commands="reload" |
| 16 |
|
16 |
|
| 17 |
depend() { |
17 |
depend() { |
|
Lines 48-50
Link Here
|
| 48 |
[ -f ${PHP_FPM_PID} ] && kill -USR2 $(cat ${PHP_FPM_PID}) |
48 |
[ -f ${PHP_FPM_PID} ] && kill -USR2 $(cat ${PHP_FPM_PID}) |
| 49 |
eend $? |
49 |
eend $? |
| 50 |
} |
50 |
} |
|
|
51 |
|
| 52 |
configtest() { |
| 53 |
ebegin "Testing PHP FastCGI Process Manager Configuration" |
| 54 |
set_phpvars |
| 55 |
/usr/lib/${PHPSLOT}/bin/php-fpm -y "${PHP_FPM_CONF}" |
| 56 |
eend $? |
| 57 |
} |