Quellcode durchsuchen

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

- reported by Grant Bagdasarian

(cherry picked from commit f7fe8b68ffb100fbaa27344e4bee7ba69c760584)
Daniel-Constantin Mierla vor 12 Jahren
Ursprung
Commit
052dfbe299

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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