diff options
author | Sergey A. Osokin <osa@FreeBSD.org> | 2020-04-22 22:09:12 +0000 |
---|---|---|
committer | Sergey A. Osokin <osa@FreeBSD.org> | 2020-04-22 22:09:12 +0000 |
commit | d00b2caf6f5d9f19714375d3fb8a8b1a9c00f6dd (patch) | |
tree | 1dcc64046435382e0f9fde0192f819f2d891ba6d /www/nginx-devel/files | |
parent | 472aa54b0356d5a1769a42db440ae12a8881e701 (diff) | |
download | ports-d00b2caf6f5d9f19714375d3fb8a8b1a9c00f6dd.tar.gz ports-d00b2caf6f5d9f19714375d3fb8a8b1a9c00f6dd.zip |
Notes
Diffstat (limited to 'www/nginx-devel/files')
-rw-r--r-- | www/nginx-devel/files/nginx.in | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/www/nginx-devel/files/nginx.in b/www/nginx-devel/files/nginx.in index 3478a6948cb3..da4032e2205d 100644 --- a/www/nginx-devel/files/nginx.in +++ b/www/nginx-devel/files/nginx.in @@ -17,6 +17,8 @@ # nginxlimits_enable (bool): Set to "NO" by default. # Set it to yes to run `limits $limits_args` # just before nginx starts. +# nginx_reload_quiet (bool): Set to "NO" by default. +# Set it to yes to suppress info output when testng config. # nginx_flags (str): Set to "" by default. # Extra flags passed to start command. # nginxlimits_args (str): Default to "-e -U %%WWWOWN%%" @@ -48,6 +50,7 @@ extra_commands="reload configtest upgrade gracefulstop" [ -z "$nginxlimits_enable" ] && nginxlimits_enable="NO" [ -z "$nginxlimits_args" ] && nginxlimits_args="-e -U %%WWWOWN%%" [ -z "$nginx_http_accept_enable" ] && nginx_http_accept_enable="NO" +[ -z "$nginx_reload_quiet" ] && nginx_reload_quiet="NO" load_rc_config $name @@ -97,8 +100,12 @@ nginx_checkconfig() { nginx_checktmpdir - echo "Performing sanity check on nginx configuration:" - eval ${command} ${nginx_flags} -t + if checkyesno nginx_reload_quiet; then + eval ${command} ${nginx_flags} -t -q + else + echo "Performing sanity check on nginx configuration:" + eval ${command} ${nginx_flags} -t + fi } nginx_gracefulstop() |