forked from Spark/ssm-services
15
init.d/nginx
15
init.d/nginx
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env watchman
|
||||
#!/usr/bin/env ssm
|
||||
|
||||
# For respawn to work, set 'daemon no' in nginx.conf
|
||||
#service_respawn='true'
|
||||
@@ -11,15 +11,12 @@ conftest() {
|
||||
nginx.test_config
|
||||
}
|
||||
|
||||
reload() {
|
||||
if nginx.test_config -q; then
|
||||
watchman.reload
|
||||
else
|
||||
watchman.err "Nginx config test failed, not reloading."
|
||||
return 1
|
||||
fi
|
||||
pre_reload() {
|
||||
nginx.test_config || {
|
||||
printf 'Config test failed, not reloading.\n'
|
||||
}
|
||||
}
|
||||
|
||||
upgrade() {
|
||||
watchman.msg "This script has no zero-downtime upgrade support for nginx."
|
||||
printf 'This script has no zero-downtime upgrade support for nginx.\n'
|
||||
}
|
||||
|
Reference in New Issue
Block a user