freeipmi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Freeipmi-devel] [PATCH 1/9] Initscript should return '5' when 'program


From: Jan Safranek
Subject: [Freeipmi-devel] [PATCH 1/9] Initscript should return '5' when 'program is not installed'
Date: Wed, 23 Sep 2009 12:45:58 +0200
User-agent: StGIT/0.14.3

Initscript should return exit code 5 if the executable cannot be found
(i.e. 'program is not installed').


Signed-off-by: Jan Safranek <address@hidden>
---

 bmc-watchdog/freeipmi-bmc-watchdog.init |    2 +-
 ipmidetect/freeipmi-ipmidetectd.init    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bmc-watchdog/freeipmi-bmc-watchdog.init 
b/bmc-watchdog/freeipmi-bmc-watchdog.init
index 18214f2..0d07a11 100755
--- a/bmc-watchdog/freeipmi-bmc-watchdog.init
+++ b/bmc-watchdog/freeipmi-bmc-watchdog.init
@@ -17,7 +17,7 @@ PIDFILE=/var/run/freeipmi-bmc-watchdog.pid
 LOCKFILE=/var/lock/subsys/freeipmi-bmc-watchdog
 CONFFILE=/etc/sysconfig/freeipmi-bmc-watchdog
 
-[ -f $DAEMON ] || exit 1
+[ -f $DAEMON ] || exit 5
 
 if [ -r $CONFFILE ]; then
         . $CONFFILE
diff --git a/ipmidetect/freeipmi-ipmidetectd.init 
b/ipmidetect/freeipmi-ipmidetectd.init
index 0979ceb..d0edc2c 100644
--- a/ipmidetect/freeipmi-ipmidetectd.init
+++ b/ipmidetect/freeipmi-ipmidetectd.init
@@ -15,7 +15,7 @@
 
 IPMIDETECTD=/usr/sbin/ipmidetectd
 
-[ -f $IPMIDETECTD ] || exit 1
+[ -f $IPMIDETECTD ] || exit 5
 
 # Load Redhat or Suse appropriate libs
 if [ -f /etc/rc.d/init.d/functions ] ; then





reply via email to

[Prev in Thread] Current Thread [Next in Thread]