i hate systemd
This commit is contained in:
parent
214cacd57b
commit
13212d5563
15
slack/prod/tsys-base/files/lib/systemd/system/snmpd.service
Normal file
15
slack/prod/tsys-base/files/lib/systemd/system/snmpd.service
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user