The rc script of arpwatch sets the arpwatch_interfaces variable to an empty
value and then calls load_rc_config. But if _rc_conf_loaded is true when the rc
script is executed, and this happens upon reboot, the value of variable
arpwatch_interfaces is set by rc.conf, then it is cleared in the rc script and
then the call to load_rc_config does not reload its value. The result is that
if arpwatch_interfaces is set in /etc/rc.conf to a list of two or more
interfaces then upon reboot, the script misbehaves and only one process is
Fix: The following simple fix solves the problem.
Content-Type: text/plain; name="file.diff"
Content-Disposition: attachment; filename="file.diff"
--- arpwatch.old Fri Aug 25 21:13:09 2006
+++ arpwatch Fri Aug 25 21:13:41 2006
@@ -12,7 +12,6 @@
How-To-Repeat: Install arpwatch, set arpwatch_enable="YES" and arwpatch_interfaces="fxp0 fxp1"
in /etc/rc.conf and reboot the machine. Then check thath only one arpwatch
process is running.
Awaiting maintainers feedback
I concur with this patch, please commit.
There is one more issue with this script, it does not analyzes its
options for 'faststart' and 'restart' cases. For details please look at
http://www.freebsd.org/cgi/query-pr.cgi?pr=102600 that contains
more complete patch.
Eugene Grosbein p=ED=B9e v =FAt 29. 08. 2006 v 01:53 +0800:
> There is one more issue with this script, it does not analyzes its
> options for 'faststart' and 'restart' cases. For details please look at
> http://www.freebsd.org/cgi/query-pr.cgi?pr=3D102600 that contains
> more complete patch.
The faststart issue seems to be already addressed in the port.
As for the PR, it's pending maintainer's approval/reaction.
Pav Lucistnik <firstname.lastname@example.org>
Angband in action! Constant escalation to new depths to find angrier,
meaner letters and more punctuation!
----- Transcript of session follows -----
... while talking to relay2.grosbein.pp.ru.:
<<< 450 4.0.0 <email@example.com>... You are still not in my white list. Please try later.
<firstname.lastname@example.org>... Deferred: 450 4.0.0 <email@example.com>... You are still not in my white list. Please try later.
<<< 503 5.0.0 Need RCPT (recipient)
Message could not be delivered for 5 days
Message will be deleted from queue