fix telegraf service (#1252)

This commit is contained in:
Rene Zbinden
2016-05-24 16:14:58 +02:00
committed by Cameron Sparr
parent e103923430
commit 475252d873
2 changed files with 9 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ Environment='STDERR=/var/log/telegraf/telegraf.log'
ExecStart=/bin/sh -c "/usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d ${TELEGRAF_OPTS} >>${STDOUT} 2>>${STDERR}"
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
KillMode=process
KillMode=control-group
[Install]
WantedBy=multi-user.target