watchman -> ssm

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2017-07-13 16:09:42 +03:00
parent 3953df0dba
commit 2205f72a2e
71 changed files with 198 additions and 212 deletions

View File

@@ -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'
}