utils: fix kamctl start if installed in a custom prefix, tested from Fabian Borot
authorHenning Westerholt <henning.westerholt@1und1.de>
Wed, 6 Jul 2011 16:26:16 +0000 (18:26 +0200)
committerHenning Westerholt <henning.westerholt@1und1.de>
Wed, 6 Jul 2011 16:26:16 +0000 (18:26 +0200)
utils/kamctl/kamctl

index 4d99f15..8c37a9d 100755 (executable)
@@ -1610,9 +1610,9 @@ openser_start() {
                exit 1
        fi
        if [ $SYSLOG = 1 ] ; then
-               $OSERBIN -P $PID_FILE $STARTOPTIONS 1>/dev/null 2>/dev/null
+               $OSERBIN -P $PID_FILE  -f $ETCDIR/kamailio.cfg $STARTOPTIONS 1>/dev/null 2>/dev/null
        else
-               $OSERBIN -P $PID_FILE -E $STARTOPTIONS
+               $OSERBIN -P $PID_FILE -E  -f $ETCDIR/kamailio.cfg $STARTOPTIONS
        fi
        sleep 3
        if [ ! -s $PID_FILE ] ; then