Farid Ahmadian / 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


Farid Ahmadian / Slackware [ TXT ]

With many thanks and best wishes for dear Pejman Moghadam, someone who taught me alot in linux and life :)