[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeipmi-devel
Subject:    [Freeipmi-devel] [PATCH 6/9] Add missing actions
From:       Jan Safranek <jsafrane () redhat ! com>
Date:       2009-09-23 10:46:35
Message-ID: 20090923104635.10690.22250.stgit () localhost ! localdomain
[Download RAW message or body]

Add missing actions, which are either required by LSB or simple to
ipmlement. And while doing it, fix exit code of invalid/not-supported
actions.

Signed-off-by: Jan Safranek <jsafrane@redhat.com>
---

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

diff --git a/bmc-watchdog/freeipmi-bmc-watchdog.init b/bmc-watchdog/freeipmi-bmc-watchdog.init
index 9a20d2a..217de89 100755
--- a/bmc-watchdog/freeipmi-bmc-watchdog.init
+++ b/bmc-watchdog/freeipmi-bmc-watchdog.init
@@ -117,12 +117,12 @@ case "$1" in
   status)
    	Xstatus
 	;;
-  condrestart)
+  condrestart|try-restart|force-reload)
         Xcondrestart
         ;;
   *)
-	echo "Usage: $0 {start|stop|restart|status|condrestart}"
-	exit 1
+	echo "Usage: $0 {start|stop|restart|status|condrestart|try-restart|force-reload}"
+	exit 2
 esac
 
 exit $RETVAL
diff --git a/ipmidetect/freeipmi-ipmidetectd.init b/ipmidetect/freeipmi-ipmidetectd.init
index b04d0d7..a51e07e 100644
--- a/ipmidetect/freeipmi-ipmidetectd.init
+++ b/ipmidetect/freeipmi-ipmidetectd.init
@@ -101,10 +101,10 @@ case "$1" in
   status)
         Xstatus
    	;;
-  condrestart)
+  condrestart|try-restart|force-reload)
         Xcondrestart
    	;;
   *)
-	echo "Usage: $0 {start|stop|restart|status|condrestart}"
-	exit 1
+	echo "Usage: $0 {start|stop|restart|status|condrestart|try-restart|force-reload}"
+	exit 2
 esac




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic