Rotation of ipmon log

JJB Barbish3 at adelphia.net
Fri Feb 20 05:12:08 PST 2004


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 at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org]On Behalf Of Piotr Gnyp
Sent: Friday, February 20, 2004 4:40 AM
To: freebsd-questions at 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 at 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 at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list