ports/187251: rc.d script for net-mgmt/icmpmonitor

Pavel Timofeev timp87 at gmail.com
Tue Mar 4 10:30:00 UTC 2014


>Number:         187251
>Category:       ports
>Synopsis:       rc.d script for net-mgmt/icmpmonitor
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 04 10:30:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Pavel Timofeev
>Release:        FreeBSD 10.0-RELEASE amd64
>Organization:
OCS
>Environment:
>Description:
There is no rc.d script to start net-mgmt/icmpmonitor now.
Here is an attempt to add it.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

#!/bin/sh

# PROVIDE: icmpmonitor
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable icmpmonitor:
#
#icmpmonitor_enable="YES"
#
# See icmpmonitor(1) for flags

. /etc/rc.subr

name=icmpmonitor
rcvar=icmpmonitor_enable

command=/usr/local/sbin/icmpmonitor

stop_postcmd=stop_postcmd

stop_postcmd()
{
  rm -f $pidfile
}

# set defaults

icmpmonitor_enable=${icmpmonitor_enable:-"NO"}
icmpmonitor_flags=${icmpmonitor_flags:-"-d -v -f /usr/local/etc/icmpmonitor.conf"}

load_rc_config $name
run_rc_command "$1"


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list