summaryrefslogtreecommitdiff
path: root/extra/net-snmp/snmpd.service
diff options
context:
space:
mode:
Diffstat (limited to 'extra/net-snmp/snmpd.service')
-rw-r--r--extra/net-snmp/snmpd.service3
1 files changed, 2 insertions, 1 deletions
diff --git a/extra/net-snmp/snmpd.service b/extra/net-snmp/snmpd.service
index 111a8d6a9..3e5dbc534 100644
--- a/extra/net-snmp/snmpd.service
+++ b/extra/net-snmp/snmpd.service
@@ -4,7 +4,8 @@ After=syslog.target network.target
[Service]
Type=forking
-ExecStart=/usr/sbin/snmpd
+PIDFile=/run/snmpd.pid
+ExecStart=/usr/sbin/snmpd -p /run/snmpd.pid
ExecReload=/bin/kill -HUP $MAINPID
[Install]