aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/snmp/files/gondul-snmp.service
diff options
context:
space:
mode:
authorLasse Haugen <haugen.lasse@gmail.com>2019-02-12 11:10:16 +0100
committerLasse Haugen <haugen.lasse@gmail.com>2019-02-12 11:10:16 +0100
commitb018cde6bdd90d219eabb29d4b5bb200e50191c9 (patch)
treebfd9a61d33797f560ba1589d94d887b1cc4bc453 /ansible/roles/snmp/files/gondul-snmp.service
parente945540c2f55b67119db19ed1a60ca4dbec59ace (diff)
service file cleanup
Diffstat (limited to 'ansible/roles/snmp/files/gondul-snmp.service')
-rw-r--r--ansible/roles/snmp/files/gondul-snmp.service10
1 files changed, 4 insertions, 6 deletions
diff --git a/ansible/roles/snmp/files/gondul-snmp.service b/ansible/roles/snmp/files/gondul-snmp.service
index e5f2179..d7bd134 100644
--- a/ansible/roles/snmp/files/gondul-snmp.service
+++ b/ansible/roles/snmp/files/gondul-snmp.service
@@ -1,14 +1,12 @@
[Unit]
Description=Gondul snmp collector
-Documentation=http://google.com
-After=network.target
+Documentation=https://github.com/gathering/gondul
+After=network-online.target
[Service]
ExecStart=/opt/gondul/collectors/snmpfetchng.pl
-MountFlags=slave
-LimitNOFILE=1048576
-LimitNPROC=1048576
-LimitCORE=infinity
+ExecReload=/usr/bin/kill -HUP $MAINPID
+Restart=on-failure
[Install]
WantedBy=multi-user.target