[packages] igmpproxy: fix initscript (closes: #7577), bump release number
[openwrt/svn-archive/archive.git] / net / igmpproxy / files / igmpproxy.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2010 OpenWrt.org
3
4 START=99
5 STOP=10
6
7 # igmpproxy supports both a debug mode and verbosity, which are very useful
8 # when something isn't working.
9 #
10 # Debug mode will print everything to stdout instead of syslog. Generally
11 # verbosity should NOT be set as it will quickly fill your syslog.
12 #
13 # Put any debug or verbosity options into IGMP_OPTS
14 #
15 # Examples:
16 # IGMP_OPTS="-d -v -v" - debug mode and very verbose, this will land in
17 # stdout and not in syslog
18 # IGMP_OPTS="-v" - be verbose, this will write aditional information to syslog
19
20 IGMP_OPTS=""
21 IGMP_BIN="/usr/sbin/igmpproxy"
22 IGMP_CNF="/etc/igmpproxy.conf"
23 PID_F="/var/run/igmpproxy.pid"
24
25 start() {
26 echo "Starting igmpproxy"
27 start-stop-daemon -S -x $IGMP_BIN -p $PID_F -b -m -- $IGMP_OPTS $IGMP_CNF
28 }
29
30 stop() {
31 echo "Stopping igmpporxy"
32 start-stop-daemon -K -x $IGMP_BIN -p $PID_F -q
33 }