summaryrefslogtreecommitdiff
path: root/distro
diff options
context:
space:
mode:
authorBryan McLellan <btm@opscode.com>2013-07-01 14:49:18 -0700
committerBryan McLellan <btm@opscode.com>2013-10-04 09:52:11 -0700
commitacbb1b68e290eb0aa703bcb01791ae5e2bccb1c0 (patch)
treeae96a069b5d571750166833d77ad8f6e218b710f /distro
parentcba693a6478fa03b0e170391a900eb1586a033cb (diff)
downloadchef-acbb1b68e290eb0aa703bcb01791ae5e2bccb1c0.tar.gz
CHEF-3159: Fail with exit 1 if the init script is missing
Diffstat (limited to 'distro')
-rwxr-xr-xdistro/debian/etc/init.d/chef-client2
-rwxr-xr-xdistro/debian/etc/init.d/chef-expander2
-rwxr-xr-xdistro/debian/etc/init.d/chef-server2
-rwxr-xr-xdistro/debian/etc/init.d/chef-server-webui2
-rwxr-xr-xdistro/debian/etc/init.d/chef-solr2
-rw-r--r--distro/debian/etc/init/chef-client.conf2
-rw-r--r--distro/debian/etc/init/chef-expander.conf2
-rw-r--r--distro/debian/etc/init/chef-server-webui.conf2
-rw-r--r--distro/debian/etc/init/chef-server.conf2
-rw-r--r--distro/debian/etc/init/chef-solr.conf2
10 files changed, 10 insertions, 10 deletions
diff --git a/distro/debian/etc/init.d/chef-client b/distro/debian/etc/init.d/chef-client
index c5dfea06fb..b74f6d914b 100755
--- a/distro/debian/etc/init.d/chef-client
+++ b/distro/debian/etc/init.d/chef-client
@@ -20,7 +20,7 @@ NAME=chef-client
DESC=chef-client
PIDFILE=/var/run/chef/client.pid
-test -x $DAEMON || exit 0
+test -x $DAEMON || exit 1
. /lib/lsb/init-functions
diff --git a/distro/debian/etc/init.d/chef-expander b/distro/debian/etc/init.d/chef-expander
index 7fea0e9118..fdf6e40678 100755
--- a/distro/debian/etc/init.d/chef-expander
+++ b/distro/debian/etc/init.d/chef-expander
@@ -20,7 +20,7 @@ NAME=chef-expander
DESC=chef-expander
PIDFILE=/var/run/chef/expander.pid
-test -x $DAEMON || exit 0
+test -x $DAEMON || exit 1
. /lib/lsb/init-functions
diff --git a/distro/debian/etc/init.d/chef-server b/distro/debian/etc/init.d/chef-server
index f7c1ede583..0b94fc7fc7 100755
--- a/distro/debian/etc/init.d/chef-server
+++ b/distro/debian/etc/init.d/chef-server
@@ -21,7 +21,7 @@ MAINPID=/var/run/chef/server.main.pid
NAME=chef-server
DESC=chef-server
-test -x $DAEMON || exit 0
+test -x $DAEMON || exit 1
. /lib/lsb/init-functions
diff --git a/distro/debian/etc/init.d/chef-server-webui b/distro/debian/etc/init.d/chef-server-webui
index c82171cedb..e2db8a49b7 100755
--- a/distro/debian/etc/init.d/chef-server-webui
+++ b/distro/debian/etc/init.d/chef-server-webui
@@ -21,7 +21,7 @@ MAINPID=/var/run/chef/server-webui.main.pid
NAME=chef-server-webui
DESC=chef-server-webui
-test -x $DAEMON || exit 0
+test -x $DAEMON || exit 1
. /lib/lsb/init-functions
diff --git a/distro/debian/etc/init.d/chef-solr b/distro/debian/etc/init.d/chef-solr
index 1e4c0b8b51..2cc93b5fd2 100755
--- a/distro/debian/etc/init.d/chef-solr
+++ b/distro/debian/etc/init.d/chef-solr
@@ -21,7 +21,7 @@ NAME=chef-solr
DESC=chef-solr
PIDFILE=/var/run/chef/solr.pid
-test -x $DAEMON || exit 0
+test -x $DAEMON || exit 1
. /lib/lsb/init-functions
diff --git a/distro/debian/etc/init/chef-client.conf b/distro/debian/etc/init/chef-client.conf
index 1f8c6d0d9b..5f246b140c 100644
--- a/distro/debian/etc/init/chef-client.conf
+++ b/distro/debian/etc/init/chef-client.conf
@@ -11,7 +11,7 @@ respawn
respawn limit 5 30
pre-start script
- test -x /usr/bin/chef-client || { stop; exit 0; }
+ test -x /usr/bin/chef-client || { stop; exit 1; }
end script
exec /usr/bin/chef-client -i 1800 -L /var/log/chef/client.log
diff --git a/distro/debian/etc/init/chef-expander.conf b/distro/debian/etc/init/chef-expander.conf
index 21ff246307..2c08f6cecc 100644
--- a/distro/debian/etc/init/chef-expander.conf
+++ b/distro/debian/etc/init/chef-expander.conf
@@ -11,7 +11,7 @@ respawn
respawn limit 5 30
pre-start script
- test -x /usr/bin/chef-expander || { stop; exit 0; }
+ test -x /usr/bin/chef-expander || { stop; exit 1; }
end script
exec /usr/bin/chef-expander -c /etc/chef/solr.rb -L /var/log/chef/expander.log -n 1 -i 1
diff --git a/distro/debian/etc/init/chef-server-webui.conf b/distro/debian/etc/init/chef-server-webui.conf
index 8b443c51f5..8ba25877e4 100644
--- a/distro/debian/etc/init/chef-server-webui.conf
+++ b/distro/debian/etc/init/chef-server-webui.conf
@@ -11,7 +11,7 @@ respawn
respawn limit 5 30
pre-start script
- test -x /usr/bin/chef-server-webui || { stop; exit 0; }
+ test -x /usr/bin/chef-server-webui || { stop; exit 1; }
end script
exec /usr/bin/chef-server-webui -e production -p 4040 -L /var/log/chef/server-webui.log
diff --git a/distro/debian/etc/init/chef-server.conf b/distro/debian/etc/init/chef-server.conf
index 1eebd8f0cb..a372e50ea3 100644
--- a/distro/debian/etc/init/chef-server.conf
+++ b/distro/debian/etc/init/chef-server.conf
@@ -11,7 +11,7 @@ respawn
respawn limit 5 30
pre-start script
- test -x /usr/bin/chef-server || { stop; exit 0; }
+ test -x /usr/bin/chef-server || { stop; exit 1; }
end script
exec /usr/bin/chef-server -e production -p 4000 -L /var/log/chef/server.log
diff --git a/distro/debian/etc/init/chef-solr.conf b/distro/debian/etc/init/chef-solr.conf
index 4ca885e28d..edca5e3f80 100644
--- a/distro/debian/etc/init/chef-solr.conf
+++ b/distro/debian/etc/init/chef-solr.conf
@@ -11,7 +11,7 @@ respawn
respawn limit 5 30
pre-start script
- test -x /usr/bin/chef-solr || { stop; exit 0; }
+ test -x /usr/bin/chef-solr || { stop; exit 1; }
end script
exec /usr/bin/chef-solr -c /etc/chef/solr.rb -L /var/log/chef/solr.log