[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freeipmi-devel] [PATCH 2/9] Return '6' if there is no config file
From: |
Jan Safranek |
Subject: |
[Freeipmi-devel] [PATCH 2/9] Return '6' if there is no config file |
Date: |
Wed, 23 Sep 2009 12:46:05 +0200 |
User-agent: |
StGIT/0.14.3 |
The init script should check, if an config file exists, and return
appropriate exit code if it does not. There is no message printed (feel free
to add one), I suggest to provide example config file, so the error message is
not needed.
Signed-off-by: Jan Safranek <address@hidden>
---
ipmidetect/freeipmi-ipmidetectd.init | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/ipmidetect/freeipmi-ipmidetectd.init
b/ipmidetect/freeipmi-ipmidetectd.init
index d0edc2c..cb2325d 100644
--- a/ipmidetect/freeipmi-ipmidetectd.init
+++ b/ipmidetect/freeipmi-ipmidetectd.init
@@ -14,8 +14,10 @@
### END INIT INFO
IPMIDETECTD=/usr/sbin/ipmidetectd
+IPMIDETECTD_CONF=/etc/ipmidetectd.conf
[ -f $IPMIDETECTD ] || exit 5
+[ -f $IPMIDETECTD_CONF ] || exit 6
# 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, 2009/09/23
- [Freeipmi-devel] [PATCH 2/9] Return '6' if there is no config file,
Jan Safranek <=
- [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