Index: files/nginx.in =================================================================== --- files/nginx.in (revision 532488) +++ files/nginx.in (working copy) @@ -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 @@ [ -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_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()