From 5e4dfbcb3abcb11c79cbc62dc2cf51244e454c95 Mon Sep 17 00:00:00 2001 From: fbt Date: Tue, 30 Sep 2014 06:00:16 +0400 Subject: [PATCH] This never actually worked --- init.d/hostname | 16 ---------------- init.d/nginx | 7 +------ 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100755 init.d/hostname diff --git a/init.d/hostname b/init.d/hostname deleted file mode 100755 index dde1ce0..0000000 --- a/init.d/hostname +++ /dev/null @@ -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 -} diff --git a/init.d/nginx b/init.d/nginx index 089f740..2b0e9ad 100755 --- a/init.d/nginx +++ b/init.d/nginx @@ -24,10 +24,5 @@ restart() { } upgrade() { - nginx.test_config || { - watchman.err "Nginx config test failed, not upgrading." - return 1 - } - - kill -12 "$service_pid" + watchman.msg "This script has no zero-downtime upgrade support for nginx." }