[PATCH 2/3] The init-script should return 2 in case of unknown command.

Peter Lemenkov lemenkov at gmail.com
Mon Nov 15 14:45:18 CET 2010


See LSB for further details regarding init-script actions:
http://refspecs.linux-foundation.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>
---
 daemon-init.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/daemon-init.in b/daemon-init.in
index 98f35e5..6da9166 100644
--- a/daemon-init.in
+++ b/daemon-init.in
@@ -228,7 +228,7 @@ case "$1" in
 
 	*)
 		echo "Usage: nagios {start|stop|restart|reload|force-reload|status|checkconfig}"
-		exit 1
+		exit 2
 		;;
 
 esac
-- 
1.7.3.2


------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev




More information about the Developers mailing list