Pejman Moghadam / Slackware

Slackware 13.37 - snmpd log file rotation

Without this setting, snmpd log file won't stop growing

Public domain


/etc/logrotate.d/snmpd

/var/log/snmpd.log {
  daily
  copytruncate
  missingok
  notifempty
  postrotate
    /etc/rc.d/rc.snmpd restart
   endscript
}

BY: Pejman Moghadam
TAG: logrotate, snmp
DATE: 2011-11-12 11:57:01


Pejman Moghadam / Slackware [ TXT ]