Changeset 22268


Ignore:
Timestamp:
2010-07-18T02:04:43+02:00 (7 years ago)
Author:
nico
Message:

[packages] igmpproxy: fix initscript (closes: #7577), bump release number

Location:
packages/net/igmpproxy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/igmpproxy/Makefile

    r18546 r22268  
    11# 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2010 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=igmpproxy 
    1111PKG_VERSION:=0.1 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • packages/net/igmpproxy/files/igmpproxy.init

    r17425 r22268  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2010 OpenWrt.org 
     3 
    34START=99 
    4 DEBUG=0 
     5STOP=10 
     6 
     7# igmpproxy supports both a debug mode and verbosity, which are very useful 
     8# when something isn't working. 
    59# 
    6 # The debug flag should generally be set to 0 
    7 # otherwise igmpproxy will spam your syslog. 
    8 # However, this is very useful for debugging 
    9 # a non-functional configuration file. 
     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. 
    1012# 
    11 # DEBUG=0 = NO DEBUG!!! 
    12 # DEBUG=1 -d 
    13 # DEBUG=2 -v 
    14 # DEBUG=3 -v -v 
    15 LOGFILE="/root/igmpproxy.log" 
     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 
     20IGMP_OPTS="" 
     21IGMP_BIN="/usr/sbin/igmpproxy" 
     22IGMP_CNF="/etc/igmpproxy.conf" 
     23PID_F="/var/run/igmpproxy.pid" 
     24 
    1625start() { 
    17         echo -n "Starting igmpproxy" 
    18         # Normal Mode 
    19         if [ $DEBUG -eq 0 ]; then 
    20                 echo " in normal mode" 
    21                 /usr/sbin/igmpproxy /etc/igmpproxy.conf & 
    22         # Debug Mode 
    23         elif [ $DEBUG -eq 1 ]; then 
    24                         echo " in debug mode" 
    25                         /usr/sbin/igmpproxy -d /etc/igmpproxy.conf & 
    26         # Verbose Mode 
    27         elif [ $DEBUG -eq 2 ]; then 
    28                         echo " in verbose mode" 
    29                         /usr/sbin/igmpproxy -v /etc/igmpproxy.conf & 
    30         # Very Verbose Mode 
    31         elif [ $DEBUG -eq 3 ]; then 
    32                         echo " in very verbose mode" 
    33                         /usr/sbin/igmpproxy -v -v /etc/igmpproxy.conf & 
    34         else 
    35                         echo " unkown debug mode, must be 0, 1, 2 or 3" 
    36         fi 
     26        echo "Starting igmpproxy" 
     27        start-stop-daemon -S -x $IGMP_BIN -p $PID_F -b -m -- $IGMP_OPTS $IGMP_CNF 
    3728} 
    3829 
    3930stop() { 
    40         echo "Killing igmpporxy" 
    41         killall igmpproxy 
     31        echo "Stopping igmpporxy" 
     32        start-stop-daemon -K -x $IGMP_BIN -p $PID_F -q 
    4233} 
Note: See TracChangeset for help on using the changeset viewer.