This never actually worked
This commit is contained in:
parent
32930de7d6
commit
5e4dfbcb3a
|
@ -1,16 +0,0 @@
|
||||||
#!/usr/bin/env watchman
|
|
||||||
|
|
||||||
service_type='oneshot'
|
|
||||||
service_command='hostname'
|
|
||||||
service_args="$cfg_hostname"
|
|
||||||
|
|
||||||
start() {
|
|
||||||
[[ -e "/etc/hostname" ]] && {
|
|
||||||
cfg_hostname=`cat /etc/hostname`
|
|
||||||
} || {
|
|
||||||
watchman.err "/etc/hostname: no such file"
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
watchman.start
|
|
||||||
}
|
|
|
@ -24,10 +24,5 @@ restart() {
|
||||||
}
|
}
|
||||||
|
|
||||||
upgrade() {
|
upgrade() {
|
||||||
nginx.test_config || {
|
watchman.msg "This script has no zero-downtime upgrade support for nginx."
|
||||||
watchman.err "Nginx config test failed, not upgrading."
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
kill -12 "$service_pid"
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user