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