diff --git a/debian/ngcp-rtpengine-recording-daemon.init b/debian/ngcp-rtpengine-recording-daemon.init index 32457eb1c..c27177c6d 100755 --- a/debian/ngcp-rtpengine-recording-daemon.init +++ b/debian/ngcp-rtpengine-recording-daemon.init @@ -14,7 +14,6 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin NAME=ngcp-rtpengine-recording-daemon DESC="RTP/media recording daemon" -TABLE=0 DAEMON=$(which rtpengine-recording) DEFAULTS=/etc/default/${NAME} @@ -76,12 +75,6 @@ fi ### -if [ -x /usr/sbin/ngcp-virt-identify ]; then - if /usr/sbin/ngcp-virt-identify --type container; then - VIRT="yes" - fi -fi - case "$1" in start) set +e diff --git a/el/rtpengine.init b/el/rtpengine.init index 5804b79f8..4e9dc25ef 100644 --- a/el/rtpengine.init +++ b/el/rtpengine.init @@ -187,7 +187,7 @@ start() { else modprobe xt_RTPENGINE fi - temp=`firewall-cmd --state 2>/dev/null` + firewall-cmd --state 2>/dev/null if [[ $? == 0 ]] then # Using firewalld @@ -240,7 +240,7 @@ stop() { . "$cachefile" echo "Unloading module for in-kernel packet forwarding" echo "del $TABLE" > /proc/rtpengine/control - temp=`firewall-cmd --state 2>/dev/null` + firewall-cmd --state 2>/dev/null if [[ $? == 0 ]] then firewall-cmd --direct --remove-rules ipv4 filter rtpengine