Date: Tue, 4 Mar 2014 10:21:03 GMT From: Pavel Timofeev <timp87@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/187251: rc.d script for net-mgmt/icmpmonitor Message-ID: <201403041021.s24AL319070346@cgiserv.freebsd.org> Resent-Message-ID: <201403041030.s24AU0LH074637@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403041021.s24AL319070346>