Initscript should return exit code 5 if the executable cannot be found (i.e. 'program is not installed').
Signed-off-by: Jan Safranek <[email protected]> --- 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 mailing list [email protected] http://lists.gnu.org/mailman/listinfo/freeipmi-devel
