Module: sip-router
Branch: master
Commit: f7fe8b68ffb100fbaa27344e4bee7ba69c760584
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f7fe8b6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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
---
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