indentation and cleaner code
This commit is contained in:
parent
0c22e184e6
commit
bcccd80ba7
15
init.d/nginx
15
init.d/nginx
|
@ -10,21 +10,16 @@ conftest() {
|
|||
}
|
||||
|
||||
reload() {
|
||||
nginx.test_config -q || {
|
||||
if nginx.test_config -q; then
|
||||
watchman.reload
|
||||
else
|
||||
watchman.err "Nginx config test failed, not reloading."
|
||||
return 1
|
||||
}
|
||||
|
||||
watchman.reload
|
||||
fi
|
||||
}
|
||||
|
||||
restart() {
|
||||
nginx.test_config -q || {
|
||||
watchman.err "Nginx config test failed, not restarting."
|
||||
return 1
|
||||
}
|
||||
|
||||
stop; start
|
||||
stop && start
|
||||
}
|
||||
|
||||
upgrade() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user