From owner-freebsd-stable Tue Aug 21 0: 4:49 2001 Delivered-To: freebsd-stable@freebsd.org Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id D46DD37B401 for <freebsd-stable@FreeBSD.ORG>; Tue, 21 Aug 2001 00:04:46 -0700 (PDT) (envelope-from cjc@earthlink.net) Received: from blossom.cjclark.org (dialup-209.245.130.30.Dial1.SanJose1.Level3.net [209.245.130.30]) by falcon.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id AAA28280; Tue, 21 Aug 2001 00:03:40 -0700 (PDT) Received: (from cjc@localhost) by blossom.cjclark.org (8.11.4/8.11.3) id f7L71IL69222; Tue, 21 Aug 2001 00:01:18 -0700 (PDT) (envelope-from cjc) 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> Reply-To: cjclark@alum.mit.edu References: <16DC0F334516F5478EC60CADEDB6A684CAE8@moe.wojo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <16DC0F334516F5478EC60CADEDB6A684CAE8@moe.wojo.net>; from robertw@wojo.com on Tue, Aug 21, 2001 at 02:01:50AM -0400 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: <freebsd-stable.FreeBSD.ORG> List-Archive: <http://docs.freebsd.org/mail/> (Web Archive) List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions) List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-stable> List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-stable> X-Loop: FreeBSD.ORG 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