Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 2004 08:12:07 -0500
From:      "JJB" <Barbish3@adelphia.net>
To:        "Piotr Gnyp" <toread@discordia.pl>, <freebsd-questions@freebsd.org>
Subject:   RE: Rotation of ipmon log
Message-ID:  <MIEPLLIBMLEEABPDBIEGIEOFFLAA.Barbish3@adelphia.net>
In-Reply-To: <Pine.BSF.4.58.0402201037220.77718@discordia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
Ipfs is the wrong prefix for the IPFILTER rc.conf statements.
You also have to define the log in /etc/syslog.conf file

-----Original Message-----
From: owner-freebsd-questions@freebsd.org
[mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Piotr Gnyp
Sent: Friday, February 20, 2004 4:40 AM
To: freebsd-questions@freebsd.org
Subject: Rotation of ipmon log

Hi,
when i`m trying to rotate log file from ipmon i get these messages:
newsyslog: can't notify daemon, pid 40948: No such process
newsyslog: log /var/log/ipmon.log.0 not compressed because daemon(s)
not
notified

My settings -
rc.conf:
ipmon_enable="YES"             # Set to YES for ipmon; needs
ipfilter,
too!
ipmon_program="/sbin/ipmon"    # where the ipfilter monitor program
lives
ipmon_flags="-o S -D /var/log/ipmon.log"
ipfs_enable="YES"
ipfs_program="/sbin/ipfs"
ipfs_flag="-Dsvn"

newsyslog.conf:
/var/log/ipmon.log                      644  7     *    @T00  J
/var/run/ipmon.pid

[10:39] [toread@discordia]:/home/toread>> ps -auwx | grep ipmon
root          290  0,0  0,3  1888 1404  ??  Ss   Sob13     1:59,34
/sbin/ipmon -o S -D /var/log/ipmon.log

What I`m missing? Why newsyslog can`t rotate log?
I`m using FreeBSD 5.2.1-RC2 #18.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MIEPLLIBMLEEABPDBIEGIEOFFLAA.Barbish3>