From d47e29b90366aa544e2d319b89436202be21f419 Mon Sep 17 00:00:00 2001 From: Jeremy Hinegardner Date: Sun, 12 Dec 2010 16:25:26 -0700 Subject: [PATCH] Use new -q option from nginx The new -q option in nginx suppresses non-error messages during configuration testing. Use this for configtest_q. Thanks to Gena Makhomed for the update. --- nginx.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx.init b/nginx.init index 670fca5..ddca1db 100644 --- a/nginx.init +++ b/nginx.init @@ -62,11 +62,11 @@ reload() { } configtest() { - $nginx -t -c $NGINX_CONF_FILE + $nginx -t -c $NGINX_CONF_FILE } configtest_q() { - configtest >/dev/null 2>&1 + $nginx -t -q -c $NGINX_CONF_FILE } rh_status() {