Date: Tue, 15 Apr 2008 08:17:49 GMT From: Norbert Koch <nkoch@demig.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/122786: [patch] rcng startup script for net/throttled Message-ID: <200804150817.m3F8HnYJ061952@www.freebsd.org> Resent-Message-ID: <200804150820.m3F8K0dZ011503@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 122786 >Category: ports >Synopsis: [patch] rcng startup script for net/throttled >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Apr 15 08:20:00 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Norbert Koch >Release: 6.x >Organization: >Environment: >Description: Could someone please add an rcng startup script to net/throttled. See below what I derived from /etc/rc.d/ipfw. Seems to work for me. >How-To-Repeat: >Fix: #!/bin/sh # PROVIDE: throttled # REQUIRE: ipfw # BEFORE: NETWORKING # KEYWORD: nojail . /etc/rc.subr . /etc/network.subr name="throttled" rcvar=`set_rcvar` start_precmd="throttled_precmd" command="/usr/local/sbin/throttled-startup" procname="/usr/local/sbin/throttled" throttled_precmd() { if ! ${SYSCTL} net.inet.ip.fw.enable > /dev/null 2>&1; then return 1 fi return 0 } 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?200804150817.m3F8HnYJ061952>