This never actually worked

This commit is contained in:
Jack L. Frost 2014-09-30 06:00:16 +04:00
parent 32930de7d6
commit 5e4dfbcb3a
2 changed files with 1 additions and 22 deletions

View File

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

View File

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