diff --git a/net-snmp.changes b/net-snmp.changes index d4b3c94..efdf3c9 100644 --- a/net-snmp.changes +++ b/net-snmp.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jun 29 17:20:01 UTC 2020 - Alexander van Kaam + +- Change /etc/logrotate.d/net-snmp from init.d to systemd + fix boo#1173487. + ------------------------------------------------------------------- Tue Mar 31 11:56:24 UTC 2020 - Martin Liška diff --git a/net-snmp.logrotate b/net-snmp.logrotate index 5ea89e4..0d95e4f 100644 --- a/net-snmp.logrotate +++ b/net-snmp.logrotate @@ -10,10 +10,8 @@ su root root sharedscripts postrotate - /etc/init.d/snmpd reload ||: - if [ -x /etc/init.d/snmptrapd ] ; then \ - /etc/init.d/snmptrapd reload ||: ; \ - fi + /usr/bin/systemctl try-restart snmpd.service >/dev/null + /usr/bin/systemctl try-restart snmptrapd.service >/dev/null endscript }