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.
This commit is contained in:
Jeremy Hinegardner 2010-12-12 16:25:26 -07:00
parent ec8d40bf99
commit d47e29b903

View File

@ -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() {