mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
Add configtest support for php-fpm rc script.
PR: 208324 Sponsored by: A-Team Systems
This commit is contained in:
parent
a2a1043f4d
commit
1c3e8c660c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=413091
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= php56
|
||||
PORTVERSION= 5.6.20
|
||||
PORTREVISION?= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES?= lang devel www
|
||||
MASTER_SITES= PHP/distributions
|
||||
DISTNAME= php-${PORTVERSION}
|
||||
|
@ -17,11 +17,16 @@
|
||||
name="php_fpm"
|
||||
rcvar=php_fpm_enable
|
||||
|
||||
start_precmd="php_fpm_checkconfig"
|
||||
restart_precmd="php_fpm_checkconfig"
|
||||
reload_precmd="php_fpm_checkconfig"
|
||||
configtest_cmd="php_fpm_checkconfig"
|
||||
|
||||
load_rc_config "$name"
|
||||
|
||||
: ${php_fpm_enable="NO"}
|
||||
|
||||
extra_commands="reload logrotate"
|
||||
extra_commands="reload configtest logrotate"
|
||||
|
||||
command="%%PREFIX%%/sbin/php-fpm"
|
||||
pidfile="/var/run/php-fpm.pid"
|
||||
@ -40,4 +45,10 @@ php_fpm_logrotate() {
|
||||
kill -USR1 $rc_pid
|
||||
}
|
||||
|
||||
php_fpm_checkconfig()
|
||||
{
|
||||
echo "Performing sanity check on php-fpm configuration:"
|
||||
eval ${command} -t
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user