summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlutter <lutter@980ebf18-57e1-0310-9a29-db15c13687c0>2007-06-25 17:17:45 +0000
committerlutter <lutter@980ebf18-57e1-0310-9a29-db15c13687c0>2007-06-25 17:17:45 +0000
commit0f4de4fbe63d40e4f01ffc32455289cbbaba9856 (patch)
tree81f073f55bcf8b13682c2014b44c0de148dd48d7
parent6b7d3aa037a995a18a598c1e83e150332bb32e1b (diff)
downloadpuppet-0f4de4fbe63d40e4f01ffc32455289cbbaba9856.tar.gz
puppet-0f4de4fbe63d40e4f01ffc32455289cbbaba9856.tar.xz
puppet-0f4de4fbe63d40e4f01ffc32455289cbbaba9856.zip
Fix trac #684 - set exit code for status properly (patch by abnormaliti)
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2644 980ebf18-57e1-0310-9a29-db15c13687c0
-rw-r--r--conf/redhat/client.init1
-rw-r--r--conf/redhat/server.init1
2 files changed, 2 insertions, 0 deletions
diff --git a/conf/redhat/client.init b/conf/redhat/client.init
index a25f2b3d2..b63729aa3 100644
--- a/conf/redhat/client.init
+++ b/conf/redhat/client.init
@@ -80,6 +80,7 @@ case "$1" in
;;
status)
status $puppetd
+ RETVAL=$?
;;
once)
shift
diff --git a/conf/redhat/server.init b/conf/redhat/server.init
index 5e42c387f..6afcfa98b 100644
--- a/conf/redhat/server.init
+++ b/conf/redhat/server.init
@@ -78,6 +78,7 @@ case "$1" in
;;
status)
status $PUPPETMASTER
+ RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}"