integ/base/net-snmp/centos/meta_patches/fix-snmpd-service-reload.patch

26 lines
771 B
Diff

From 2b9059876d087843078b750d0d1dc0117e17d31a Mon Sep 17 00:00:00 2001
From: Scott Little <scott.little@windriver.com>
Date: Mon, 2 Oct 2017 17:05:59 -0400
Subject: [PATCH 7/9] WRS: fix-snmpd-service-reload.patch
---
SOURCES/snmpd.service | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/SOURCES/snmpd.service b/SOURCES/snmpd.service
index ad689c8..1319091 100644
--- a/SOURCES/snmpd.service
+++ b/SOURCES/snmpd.service
@@ -8,7 +8,7 @@ Environment=OPTIONS="oamcontroller -u snmpd -Lsd -Lf /dev/null -p /var/run/snmpd
EnvironmentFile=-/etc/sysconfig/snmpd
ExecStart=/etc/init.d/snmpd start
ExecStop=/etc/init.d/snmpd stop
-ExecReload=/etc/init.d/snmpd restart
+ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
--
1.9.1