Lines 17-27
Link Here
|
17 |
name="php_fpm" |
17 |
name="php_fpm" |
18 |
rcvar=php_fpm_enable |
18 |
rcvar=php_fpm_enable |
|
|
19 |
start_precmd="php_fpm_checkconfig" |
20 |
restart_precmd="php_fpm_checkconfig" |
21 |
reload_precmd="php_fpm_checkconfig" |
22 |
configtest_cmd="php_fpm_checkconfig" |
23 |
|
19 |
load_rc_config "$name" |
24 |
load_rc_config "$name" |
20 |
: ${php_fpm_enable="NO"} |
25 |
: ${php_fpm_enable="NO"} |
21 |
extra_commands="reload logrotate" |
26 |
extra_commands="reload configtest logrotate" |
22 |
command="%%PREFIX%%/sbin/php-fpm" |
27 |
command="%%PREFIX%%/sbin/php-fpm" |
23 |
pidfile="/var/run/php-fpm.pid" |
28 |
pidfile="/var/run/php-fpm.pid" |
Lines 40-43
Link Here
|
40 |
kill -USR1 $rc_pid |
45 |
kill -USR1 $rc_pid |
41 |
} |
46 |
} |
|
|
47 |
php_fpm_checkconfig() |
48 |
{ |
49 |
echo "Performing sanity check on php-fpm configuration:" |
50 |
eval ${command} -t |
51 |
} |
52 |
|
42 |
run_rc_command "$1" |
53 |
run_rc_command "$1" |