summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/nginx-devel/Makefile2
-rw-r--r--www/nginx-devel/files/nginx.in11
2 files changed, 10 insertions, 3 deletions
diff --git a/www/nginx-devel/Makefile b/www/nginx-devel/Makefile
index b7c6f907d302..1579b122db9e 100644
--- a/www/nginx-devel/Makefile
+++ b/www/nginx-devel/Makefile
@@ -3,7 +3,7 @@
PORTNAME= nginx
PORTVERSION= 1.18.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= https://nginx.org/download/ \
LOCAL/osa
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()