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:
parent
ec8d40bf99
commit
d47e29b903
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user