From 0c586e05623ce7c7e0a9f600ae10861990b01a6ca3ebde3fe1d45630ee960b6a Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 21 Jul 2020 12:16:02 +0000 Subject: [PATCH] Accepting request 817756 from home:Xilanaz:branches:network:utilities Fixed bug #1173487 OBS-URL: https://build.opensuse.org/request/show/817756 OBS-URL: https://build.opensuse.org/package/show/network:utilities/net-snmp?expand=0&rev=25 --- net-snmp.changes | 6 ++++++ net-snmp.logrotate | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) 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 }