[sr-dev] git:4.0: pkg: kamailio - provide -f $CFGFILE to init. d config check function

Daniel-Constantin Mierla miconda at gmail.com
Thu Sep 19 16:01:13 CEST 2013


Module: sip-router
Branch: 4.0
Commit: 052dfbe29933bf773ba5d109a530c2b2f7ecb59c
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=052dfbe29933bf773ba5d109a530c2b2f7ecb59c

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Thu Sep 19 15:59:18 2013 +0200

pkg: kamailio - provide -f $CFGFILE to init.d config check function

- reported by Grant Bagdasarian

(cherry picked from commit f7fe8b68ffb100fbaa27344e4bee7ba69c760584)

---

 pkg/kamailio/deb/debian/kamailio.init  |    2 +-
 pkg/kamailio/deb/lucid/kamailio.init   |    2 +-
 pkg/kamailio/deb/precise/kamailio.init |    2 +-
 pkg/kamailio/deb/squeeze/kamailio.init |    2 +-
 pkg/kamailio/deb/wheezy/kamailio.init  |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/pkg/kamailio/deb/debian/kamailio.init b/pkg/kamailio/deb/debian/kamailio.init
index 03b7888..6b0a1ee 100644
--- a/pkg/kamailio/deb/debian/kamailio.init
+++ b/pkg/kamailio/deb/debian/kamailio.init
@@ -39,7 +39,7 @@ check_kamailio_config ()
 {
   # Check if kamailio configuration is valid before starting the server.
   set +e
-  out=$($DAEMON -M $PKG_MEMORY -c 2>&1 > /dev/null)
+  out=$($DAEMON -f $CFGFILE -M $PKG_MEMORY -c 2>&1 > /dev/null)
   retcode=$?
   set -e
   if [ "$retcode" != '0' ]; then
diff --git a/pkg/kamailio/deb/lucid/kamailio.init b/pkg/kamailio/deb/lucid/kamailio.init
index 03b7888..6b0a1ee 100644
--- a/pkg/kamailio/deb/lucid/kamailio.init
+++ b/pkg/kamailio/deb/lucid/kamailio.init
@@ -39,7 +39,7 @@ check_kamailio_config ()
 {
   # Check if kamailio configuration is valid before starting the server.
   set +e
-  out=$($DAEMON -M $PKG_MEMORY -c 2>&1 > /dev/null)
+  out=$($DAEMON -f $CFGFILE -M $PKG_MEMORY -c 2>&1 > /dev/null)
   retcode=$?
   set -e
   if [ "$retcode" != '0' ]; then
diff --git a/pkg/kamailio/deb/precise/kamailio.init b/pkg/kamailio/deb/precise/kamailio.init
index 03b7888..6b0a1ee 100644
--- a/pkg/kamailio/deb/precise/kamailio.init
+++ b/pkg/kamailio/deb/precise/kamailio.init
@@ -39,7 +39,7 @@ check_kamailio_config ()
 {
   # Check if kamailio configuration is valid before starting the server.
   set +e
-  out=$($DAEMON -M $PKG_MEMORY -c 2>&1 > /dev/null)
+  out=$($DAEMON -f $CFGFILE -M $PKG_MEMORY -c 2>&1 > /dev/null)
   retcode=$?
   set -e
   if [ "$retcode" != '0' ]; then
diff --git a/pkg/kamailio/deb/squeeze/kamailio.init b/pkg/kamailio/deb/squeeze/kamailio.init
index 03b7888..6b0a1ee 100644
--- a/pkg/kamailio/deb/squeeze/kamailio.init
+++ b/pkg/kamailio/deb/squeeze/kamailio.init
@@ -39,7 +39,7 @@ check_kamailio_config ()
 {
   # Check if kamailio configuration is valid before starting the server.
   set +e
-  out=$($DAEMON -M $PKG_MEMORY -c 2>&1 > /dev/null)
+  out=$($DAEMON -f $CFGFILE -M $PKG_MEMORY -c 2>&1 > /dev/null)
   retcode=$?
   set -e
   if [ "$retcode" != '0' ]; then
diff --git a/pkg/kamailio/deb/wheezy/kamailio.init b/pkg/kamailio/deb/wheezy/kamailio.init
index 03b7888..6b0a1ee 100644
--- a/pkg/kamailio/deb/wheezy/kamailio.init
+++ b/pkg/kamailio/deb/wheezy/kamailio.init
@@ -39,7 +39,7 @@ check_kamailio_config ()
 {
   # Check if kamailio configuration is valid before starting the server.
   set +e
-  out=$($DAEMON -M $PKG_MEMORY -c 2>&1 > /dev/null)
+  out=$($DAEMON -f $CFGFILE -M $PKG_MEMORY -c 2>&1 > /dev/null)
   retcode=$?
   set -e
   if [ "$retcode" != '0' ]; then




More information about the sr-dev mailing list