Skip to content

Commit

Permalink
init: use the specified CFGFILE in debian init
Browse files Browse the repository at this point in the history
In case the CFGFILE changes in the init script, opensips will still start with
the compiled file instead of the one configured
  • Loading branch information
razvancrainea committed Jun 23, 2016
1 parent a46bece commit 030efef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packaging/debian/opensips.init
Expand Up @@ -48,7 +48,7 @@ check_opensips_config ()
{
# Check if opensips configuration is valid before starting the server
set +e
out=$($DAEMON -c 2>&1 > /dev/null)
out=$($DAEMON -c -f $CFGFILE 2>&1 > /dev/null)
retcode=$?
set -e
if [ "$retcode" != '0' ]; then
Expand Down Expand Up @@ -100,7 +100,7 @@ if test "$DUMP_CORE" = "yes" ; then
# echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
fi

OPTIONS="-P $PIDFILE -m $S_MEMORY -M $P_MEMORY -u $USER -g $GROUP"
OPTIONS="-P $PIDFILE -m $S_MEMORY -M $P_MEMORY -u $USER -g $GROUP -f $CFGFILE"

case "$1" in
start)
Expand Down

0 comments on commit 030efef

Please sign in to comment.