|
|
|
|
@ -68,8 +68,9 @@ case "$1" in
|
|
|
|
|
set +e
|
|
|
|
|
echo "del $TABLE" > /proc/mediaproxy/control 2>/dev/null
|
|
|
|
|
iptables -D INPUT -j MEDIAPROXY --id $TABLE 2>/dev/null
|
|
|
|
|
iptables -D INPUT -p udp -j MEDIAPROXY --id $TABLE 2>/dev/null
|
|
|
|
|
set -e
|
|
|
|
|
iptables -I INPUT -j MEDIAPROXY --id $TABLE
|
|
|
|
|
iptables -I INPUT -p udp -j MEDIAPROXY --id $TABLE
|
|
|
|
|
start-stop-daemon --start --quiet --pidfile $PIDFILE \
|
|
|
|
|
--exec $DAEMON -- $OPTIONS || echo -n " already running"
|
|
|
|
|
log_end_msg $?
|
|
|
|
|
@ -84,6 +85,7 @@ case "$1" in
|
|
|
|
|
set +e
|
|
|
|
|
echo "del $TABLE" > /proc/mediaproxy/control 2>/dev/null
|
|
|
|
|
iptables -D INPUT -j MEDIAPROXY --id $TABLE 2>/dev/null
|
|
|
|
|
iptables -D INPUT -p udp -j MEDIAPROXY --id $TABLE 2>/dev/null
|
|
|
|
|
rmmod ipt_MEDIAPROXY 2>/dev/null
|
|
|
|
|
set -e
|
|
|
|
|
rm -f $PIDFILE
|
|
|
|
|
@ -104,10 +106,11 @@ case "$1" in
|
|
|
|
|
echo "del $TABLE" > /proc/mediaproxy/control 2>/dev/null
|
|
|
|
|
fi
|
|
|
|
|
iptables -D INPUT -j MEDIAPROXY --id $TABLE 2>/dev/null
|
|
|
|
|
iptables -D INPUT -p udp -j MEDIAPROXY --id $TABLE 2>/dev/null
|
|
|
|
|
rmmod ipt_MEDIAPROXY 2>/dev/null
|
|
|
|
|
set -e
|
|
|
|
|
modprobe ipt_MEDIAPROXY
|
|
|
|
|
iptables -I INPUT -j MEDIAPROXY --id $TABLE
|
|
|
|
|
iptables -I INPUT -p udp -j MEDIAPROXY --id $TABLE
|
|
|
|
|
start-stop-daemon --start --quiet --pidfile \
|
|
|
|
|
$PIDFILE --exec $DAEMON -- $OPTIONS
|
|
|
|
|
log_end_msg $?
|
|
|
|
|
|