Rotation of ipmon log

Piotr Gnyp toread at discordia.pl
Fri Feb 20 01:40:09 PST 2004


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.


More information about the freebsd-questions mailing list