nginx service was silly
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
eea04dff95
commit
43c86f2200
|
@ -5,18 +5,4 @@
|
||||||
service_command='/usr/bin/nginx'
|
service_command='/usr/bin/nginx'
|
||||||
service_pidfile='/run/nginx.pid'
|
service_pidfile='/run/nginx.pid'
|
||||||
|
|
||||||
nginx.test_config() { "$service_command" -t "$@"; }
|
pre_reload() { "$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'
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user