According to the man page for "snmptrapd" I should be able to force it to re-open its log file via a SIGHUP signal. Unfortunately it doesn't work.

EG, if I have "snmptrapd -Lf /var/log/snmptrapd.log" the file is created OK but if I then move snmptrapd.log to snmptrapd.log.1 and

"kill -SIGHUP <pid_snmptrapd>" no new "snmptrapd.log" is created, it just keeps writing to snmptrapd.log.1 (presumably because the inode doesn't change)

I also tried HUP and SIGUSER (not supported).

This is version 5.1.2 on Slackware 9.

How can I get the log rotated like the the syslog messages file without stopping/starting the daemon?

Thanks,

Kevin.



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to