diff --git a/debian/ngcp-rtpengine-iptables-setup b/debian/ngcp-rtpengine-iptables-setup index ddf99aa0e..56cf87e38 100755 --- a/debian/ngcp-rtpengine-iptables-setup +++ b/debian/ngcp-rtpengine-iptables-setup @@ -12,7 +12,7 @@ if [ -f "$DEFAULTS" ]; then fi MODPROBE_OPTIONS="" -TABLE=$(/usr/libexec/rtpengine/rtpengine-get-table --config-file=$CONFIG_FILE) +TABLE=$(/usr/libexec/rtpengine/rtpengine-get-table --config-file="${CONFIG_FILE-/etc/rtpengine/rtpengine.conf}") # Handle requested setuid/setgid. if ! test -z "$SET_USER"; then diff --git a/el/ngcp-rtpengine-iptables-setup b/el/ngcp-rtpengine-iptables-setup index f5baa9216..b9324c995 100755 --- a/el/ngcp-rtpengine-iptables-setup +++ b/el/ngcp-rtpengine-iptables-setup @@ -11,7 +11,7 @@ if [ -f "$DEFAULTS" ]; then . "$DEFAULTS" || true fi -TABLE=$(/usr/libexec/rtpengine/rtpengine-get-table --config-file=$CONFIG_FILE) +TABLE=$(/usr/libexec/rtpengine/rtpengine-get-table --config-file="${CONFIG_FILE-/etc/rtpengine/rtpengine.conf}") MODPROBE_OPTIONS="" # Handle requested setuid/setgid. diff --git a/el/rtpengine.init b/el/rtpengine.init index 1a8705735..cf19c48cd 100644 --- a/el/rtpengine.init +++ b/el/rtpengine.init @@ -33,9 +33,8 @@ rtpengine=/usr/sbin/rtpengine prog=rtpengine pidfile=${PIDFILE-/run/rtpengine.pid} lockfile=${LOCKFILE-/var/lock/subsys/rtpengine} -configfile=${CONFIG_FILE-/etc/rtpengine/rtpengine.conf} cachefile=/var/lib/ngcp-rtpengine/rtpengine.cfg -TABLE=$(/usr/libexec/rtpengine/rtpengine-get-table --config-file=$CONFIG_FILE) +TABLE=$(/usr/libexec/rtpengine/rtpengine-get-table --config-file="${CONFIG_FILE-/etc/rtpengine/rtpengine.conf}") PIDFILE=${pidfile} RETVAL=0 OPTS=""