Commit 6ac02c29 authored by glucas's avatar glucas

monitoring/snmpd/snmpd.service: switch to Debian's systemd unit but with a lower verbosity.

parent 899f398a
#
# SNMP agent service file for systemd
# From: https://github.com/haad/net-snmp/blob/master/dist/snmpd.service
# From: snmpd debian package + reduction of verbosity with "-LS6d".
#
#
# The service should be enabled, i.e. snmpd should start during machine boot.
......@@ -11,12 +11,18 @@
[Unit]
Description=Simple Network Management Protocol (SNMP) daemon.
After=syslog.target network.target
Description=Simple Network Management Protocol (SNMP) Daemon.
After=network.target
ConditionPathExists=/etc/snmp/snmpd.conf
[Service]
Environment="MIBSDIR=/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp"
Environment="MIBS="
Type=simple
ExecStart=/usr/sbin/snmpd -f -LS6d -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf
ExecStartPre=/bin/mkdir -p /var/run/agentx
ExecStart=/usr/sbin/snmpd -LS6d -Lf /dev/null -u Debian-snmp -g Debian-snmp -I -smux,mteTrigger,mteTriggerConf -f
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment