[Top][All Lists]
[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
- [Freeipmi-devel] [PATCH 0/9] Unsorted init script tuning, Jan Safranek, 2009/09/23
- [Freeipmi-devel] [PATCH 1/9] Initscript should return '5' when 'program is not installed',
Jan Safranek <=
- [Freeipmi-devel] [PATCH 2/9] Return '6' if there is no config file, Jan Safranek, 2009/09/23
- [Freeipmi-devel] [PATCH 3/9] Add sample configuration file for ipmidetectd, Jan Safranek, 2009/09/23
- [Freeipmi-devel] [PATCH 4/9] Don't start running service, Jan Safranek, 2009/09/23
- [Freeipmi-devel] [PATCH 5/9] Reload operation is not supported by the daemons, Jan Safranek, 2009/09/23
- [Freeipmi-devel] [PATCH 6/9] Add missing actions, Jan Safranek, 2009/09/23
- [Freeipmi-devel] [PATCH 7/9] Return proper exit code, Jan Safranek, 2009/09/23
- [Freeipmi-devel] [PATCH 8/9] Rename lockfiles, Jan Safranek, 2009/09/23
- [Freeipmi-devel] [PATCH 9/9] Remove freeipmi- prefix from initscript, Jan Safranek, 2009/09/23
- Re: [Freeipmi-devel] [PATCH 0/9] Unsorted init script tuning, Al Chu, 2009/09/23