Date: Tue, 3 Oct 2006 14:15:37 GMT From: Fabian Wenk <fabian@wenks.ch> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/103941: /usr/local/etc/rc.d/arpwatch.sh start only for one interface (patch attached) Message-ID: <200610031415.k93EFbWf088926@www.freebsd.org> Resent-Message-ID: <200610031420.k93EKQ2U054935@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 103941 >Category: ports >Synopsis: /usr/local/etc/rc.d/arpwatch.sh start only for one interface (patch attached) >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 Oct 03 14:20:25 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Fabian Wenk >Release: 5.4-RELEASE >Organization: >Environment: FreeBSD superman.wenks.ch 5.4-RELEASE-p20 FreeBSD 5.4-RELEASE-p20 #23: Thu Sep 28 23:15:14 CEST 2006 root@superman.wenks.ch:/usr/obj/usr/src/sys/SUPERMAN i386 >Description: Did a portupgrade from arpwatch-2.1.a15 to arpwatch-2.1.a15_2 and afterwards with the a manual restart of arpwatch I got this: root@superman:~# /usr/local/etc/rc.d/arpwatch.sh restart Stopping arpwatch. Waiting for PIDS: 587 590 593. Starting arpwatch. arpwatch already running? (pid=44695). root@superman:~# root@superman:~# ps auxwww|grep arpwatch root 44695 3.7 1.0 3172 2476 p1 S 3:49PM 0:00.20 /usr/local/sbin/arpwatch -i dc0 -f arp.dc0.dat root@superman:~# I have the following in my /etc/rc.conf: arpwatch_enable="YES" arpwatch_dir="/usr/local/arpwatch/" arpwatch_interfaces="dc0 de0 rl0" >How-To-Repeat: Restart arpwatch with '/usr/local/etc/rc.d/arpwatch.sh restart' or '/usr/local/etc/rc.d/arpwatch.sh stop' and '/usr/local/etc/rc.d/arpwatch.sh start' >Fix: Did a diff to the old arpwatch.sh and created the following patch, now it is working again: --- etc/rc.d/arpwatch.sh.orig Tue Oct 3 15:48:38 2006 +++ etc/rc.d/arpwatch.sh Tue Oct 3 15:57:03 2006 @@ -67,6 +67,7 @@ for interface in ${arpwatch_interfaces}; do eval options=\$arpwatch_${interface}_options command_args="-i ${interface} ${options} -f arp.${interface}.dat" + pidfile="/var/run/arpwatch-${interface}.pid" run_rc_command "$1" done ;; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610031415.k93EFbWf088926>