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 <[email protected]>
---

 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 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/freeipmi-devel

Reply via email to