Date: Tue, 21 Aug 2001 00:00:57 -0700 From: "Crist J. Clark" <cristjc@earthlink.net> To: "Robert S. Wojciechowski Jr." <robertw@wojo.com> Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Missing ipmon pid file on startup only Message-ID: <20010821000057.Q313@blossom.cjclark.org> In-Reply-To: <16DC0F334516F5478EC60CADEDB6A684CAE8@moe.wojo.net>; from robertw@wojo.com on Tue, Aug 21, 2001 at 02:01:50AM -0400 References: <16DC0F334516F5478EC60CADEDB6A684CAE8@moe.wojo.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 21, 2001 at 02:01:50AM -0400, Robert S. Wojciechowski Jr. wrote: > I'm having a problem with ipmon on startup, here are the relevant > /etc/rc.conf settings: > > ipfilter_enable="YES" > ipfilter_rules="/etc/ipf.rules" > ipfilter_flags="" > ipmon_enable="YES" > ipmon_flags="-Dv -P /var/run/ipmon.pid /var/log/firewall" > > When I reboot the machine and check /var/run, there is no ipmon.pid file. > Killing ipmon and restarting with the flags in ipmon_flags then starts it > correctly with the pid file created. > > I noticed this problem when newsyslog was e-mailing me with the following > error: > > newsyslog: can't open /var/run/ipmon.pid pid file to restart a daemon: No > such file or directory > newsyslog: log /var/log/firewall not compressed because daemon not notified > > Any reason why the pid file doesn't get created when the system starts up? Is ipmon(8) running at all after boot? The '-P' option used is gratuitous. Using /var/run/ipmon.pid to store the PID is the default when started with the '-D' option. Also, you can use syslog(3) instead of writing to a file with ipmon(8) and avoid HUPing ipmon(8) at all. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010821000057.Q313>