Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2017-12-10 20:44:17 +03:00
parent e6f85aa437
commit d85b1945e9
115 changed files with 132 additions and 238 deletions

22
services/nginx Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env ssm
# For respawn to work, set 'daemon no' in nginx.conf
#service_respawn='true'
service_command='/usr/bin/nginx'
service_pidfile='/run/nginx.pid'
nginx.test_config() { "$service_command" -t "$@"; }
conftest() {
nginx.test_config
}
pre_reload() {
nginx.test_config || {
printf 'Config test failed, not reloading.\n'
}
}
upgrade() {
printf 'This script has no zero-downtime upgrade support for nginx.\n'
}