From 13212d55630421410b3c98df3fa3bce95a98f414 Mon Sep 17 00:00:00 2001 From: Charles Wyble Date: Sun, 21 Apr 2019 15:13:03 -0500 Subject: [PATCH] i hate systemd --- .../files/lib/systemd/system/snmpd.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 slack/prod/tsys-base/files/lib/systemd/system/snmpd.service diff --git a/slack/prod/tsys-base/files/lib/systemd/system/snmpd.service b/slack/prod/tsys-base/files/lib/systemd/system/snmpd.service new file mode 100644 index 0000000..7f0faa5 --- /dev/null +++ b/slack/prod/tsys-base/files/lib/systemd/system/snmpd.service @@ -0,0 +1,15 @@ +[Unit] +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 +ExecStartPre=/bin/mkdir -p /var/run/agentx +ExecStart=/usr/sbin/snmpd -LS4d -Lf /dev/null -u Debian-snmp -g Debian-snmp -I -smux,mteTrigger,mteTriggerConf -f +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target