mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Default stop signal is SIGTERM, the quick shutdown. Also nginx
understands QUIT signal for graceful (gradual) stop. Add gracefulstop extra command accordingly for stable and devel versions. Bump PORTREVISIONs. PR: ports/136232 (partialy)
This commit is contained in:
parent
b9da7ad028
commit
14d37dcb30
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=236905
4 changed files with 20 additions and 2 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= nginx
|
PORTNAME= nginx
|
||||||
PORTVERSION= 0.8.4
|
PORTVERSION= 0.8.4
|
||||||
|
PORTREIVION= 1
|
||||||
CATEGORIES= www
|
CATEGORIES= www
|
||||||
MASTER_SITES= http://sysoev.ru/nginx/
|
MASTER_SITES= http://sysoev.ru/nginx/
|
||||||
MASTER_SITES+= ${MASTER_SITE_LOCAL}
|
MASTER_SITES+= ${MASTER_SITE_LOCAL}
|
||||||
|
|
|
@ -28,6 +28,7 @@ start_precmd="nginx_precmd"
|
||||||
restart_precmd="nginx_checkconfig"
|
restart_precmd="nginx_checkconfig"
|
||||||
reload_precmd="nginx_checkconfig"
|
reload_precmd="nginx_checkconfig"
|
||||||
configtest_cmd="nginx_checkconfig"
|
configtest_cmd="nginx_checkconfig"
|
||||||
|
gracefulstop_cmd="nginx_gracefulstop"
|
||||||
upgrade_precmd="nginx_checkconfig"
|
upgrade_precmd="nginx_checkconfig"
|
||||||
upgrade_cmd="nginx_upgrade"
|
upgrade_cmd="nginx_upgrade"
|
||||||
command="%%PREFIX%%/sbin/nginx"
|
command="%%PREFIX%%/sbin/nginx"
|
||||||
|
@ -83,6 +84,13 @@ nginx_checkconfig()
|
||||||
eval ${command} ${nginx_flags} -t
|
eval ${command} ${nginx_flags} -t
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nginx_gracefulstop()
|
||||||
|
{
|
||||||
|
echo "Performing a graceful stop:"
|
||||||
|
sig_stop="QUIT"
|
||||||
|
run_rc_command ${rc_prefix}stop $rc_extra_args || return 1
|
||||||
|
}
|
||||||
|
|
||||||
nginx_upgrade()
|
nginx_upgrade()
|
||||||
{
|
{
|
||||||
echo "Upgrading nginx binary:"
|
echo "Upgrading nginx binary:"
|
||||||
|
@ -112,5 +120,5 @@ nginx_precmd()
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
extra_commands="reload configtest upgrade"
|
extra_commands="reload configtest upgrade gracefulstop"
|
||||||
run_rc_command "$1"
|
run_rc_command "$1"
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= nginx
|
PORTNAME= nginx
|
||||||
PORTVERSION= 0.7.61
|
PORTVERSION= 0.7.61
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= www
|
CATEGORIES= www
|
||||||
MASTER_SITES= http://sysoev.ru/nginx/
|
MASTER_SITES= http://sysoev.ru/nginx/
|
||||||
MASTER_SITES+= ${MASTER_SITE_LOCAL}
|
MASTER_SITES+= ${MASTER_SITE_LOCAL}
|
||||||
|
|
|
@ -28,6 +28,7 @@ start_precmd="nginx_precmd"
|
||||||
restart_precmd="nginx_checkconfig"
|
restart_precmd="nginx_checkconfig"
|
||||||
reload_precmd="nginx_checkconfig"
|
reload_precmd="nginx_checkconfig"
|
||||||
configtest_cmd="nginx_checkconfig"
|
configtest_cmd="nginx_checkconfig"
|
||||||
|
gracefulstop_cmd="nginx_gracefulstop"
|
||||||
upgrade_precmd="nginx_checkconfig"
|
upgrade_precmd="nginx_checkconfig"
|
||||||
upgrade_cmd="nginx_upgrade"
|
upgrade_cmd="nginx_upgrade"
|
||||||
command="%%PREFIX%%/sbin/nginx"
|
command="%%PREFIX%%/sbin/nginx"
|
||||||
|
@ -83,6 +84,13 @@ nginx_checkconfig()
|
||||||
eval ${command} ${nginx_flags} -t
|
eval ${command} ${nginx_flags} -t
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nginx_gracefulstop()
|
||||||
|
{
|
||||||
|
echo "Performing a graceful stop:"
|
||||||
|
sig_stop="QUIT"
|
||||||
|
run_rc_command ${rc_prefix}stop $rc_extra_args || return 1
|
||||||
|
}
|
||||||
|
|
||||||
nginx_upgrade()
|
nginx_upgrade()
|
||||||
{
|
{
|
||||||
echo "Upgrading nginx binary:"
|
echo "Upgrading nginx binary:"
|
||||||
|
@ -112,5 +120,5 @@ nginx_precmd()
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
extra_commands="reload configtest upgrade"
|
extra_commands="reload configtest upgrade gracefulstop"
|
||||||
run_rc_command "$1"
|
run_rc_command "$1"
|
||||||
|
|
Loading…
Add table
Reference in a new issue