Module: sip-router
Branch: master
Commit: 4975d655b58033ee215d1f98daebb78556845b3a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4975d65…
Author: Klaus Darilion <klaus.mailinglists(a)pernau.at>
Committer: Klaus Darilion <klaus.mailinglists(a)pernau.at>
Date: Mon Mar 14 11:01:13 2011 +0100
proper LSB return values of init script
The init script should return proper LSB error values also if
kamailio ist not configured yet.
---
pkg/kamailio/deb/debian/kamailio.init | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/pkg/kamailio/deb/debian/kamailio.init
b/pkg/kamailio/deb/debian/kamailio.init
index a53ec3e..0f23fa4 100644
--- a/pkg/kamailio/deb/debian/kamailio.init
+++ b/pkg/kamailio/deb/debian/kamailio.init
@@ -93,7 +93,14 @@ fi
if [ "$RUN_KAMAILIO" != "yes" ]; then
echo "Kamailio not yet configured. Edit /etc/default/kamailio first."
- exit 0
+ case "$1" in
+ status)
+ exit 4
+ ;;
+ *)
+ exit 1
+ ;;
+ esac
fi
set -e