[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freeipmi-devel] [PATCH 6/9] Add missing actions
From: |
Jan Safranek |
Subject: |
[Freeipmi-devel] [PATCH 6/9] Add missing actions |
Date: |
Wed, 23 Sep 2009 12:46:35 +0200 |
User-agent: |
StGIT/0.14.3 |
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 <address@hidden>
---
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
- [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, 2009/09/23
- [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 <=
- [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