aboutsummaryrefslogtreecommitdiff
path: root/network/igmpproxy/rc.igmpproxy
diff options
context:
space:
mode:
authorAndreas Liebe <andreas.liebe@outlook.com>2019-06-29 06:37:47 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-06-29 06:37:47 +0700
commit8aea1abc06f895907faf50121bc92bb275815fca (patch)
treefb021a5d7b6e9e7c16aba343b12c42a360bd26dd /network/igmpproxy/rc.igmpproxy
parentb8855682ce0336a53bab05491830ec5b09303a39 (diff)
network/igmpproxy: Added (IGMP multicast routing daemon).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/igmpproxy/rc.igmpproxy')
-rw-r--r--network/igmpproxy/rc.igmpproxy36
1 files changed, 36 insertions, 0 deletions
diff --git a/network/igmpproxy/rc.igmpproxy b/network/igmpproxy/rc.igmpproxy
new file mode 100644
index 0000000000000..1b44b871f8ba7
--- /dev/null
+++ b/network/igmpproxy/rc.igmpproxy
@@ -0,0 +1,36 @@
+#!/bin/sh
+# Start/stop/restart igmpproxy (IGMP multicast routing daemon).
+
+# Start igmpproxy:
+igmpproxy_start() {
+ if [ -x /usr/sbin/igmpproxy ]; then
+ echo "Starting igmpproxy: /usr/sbin/igmpproxy"
+ /usr/sbin/igmpproxy /etc/igmpproxy.conf
+ fi
+}
+
+# Stop igmpproxy:
+igmpproxy_stop() {
+ killall igmpproxy
+}
+
+# Restart igmpproxy:
+igmpproxy_restart() {
+ igmpproxy_stop
+ sleep 1
+ igmpproxy_start
+}
+
+case "$1" in
+'start')
+ igmpproxy_start
+ ;;
+'stop')
+ igmpproxy_stop
+ ;;
+'restart')
+ igmpproxy_restart
+ ;;
+*)
+ echo "usage rc.igmpproxy: start|stop|restart"
+esac