2007-01-15 23:26:37 +00:00
|
|
|
/var/log/net-snmpd.log {
|
|
|
|
compress
|
|
|
|
dateext
|
|
|
|
maxage 365
|
|
|
|
rotate 99
|
|
|
|
size=+1024k
|
|
|
|
notifempty
|
|
|
|
missingok
|
|
|
|
create 600 root root
|
2013-07-18 14:07:01 +00:00
|
|
|
su root root
|
2007-01-15 23:26:37 +00:00
|
|
|
sharedscripts
|
|
|
|
postrotate
|
2020-07-21 12:16:02 +00:00
|
|
|
/usr/bin/systemctl try-restart snmpd.service >/dev/null
|
|
|
|
/usr/bin/systemctl try-restart snmptrapd.service >/dev/null
|
2007-01-15 23:26:37 +00:00
|
|
|
endscript
|
|
|
|
|
|
|
|
}
|