Update telegraf.service and packaging script for systemd

Deals with most of #170
This commit is contained in:
Cameron Sparr
2015-09-08 15:08:40 -06:00
parent 8c5e1ff0a0
commit bf9992b613
2 changed files with 38 additions and 15 deletions

View File

@@ -8,6 +8,8 @@ EnvironmentFile=-/etc/default/telegraf
User=telegraf
ExecStart=/opt/telegraf/telegraf -config /etc/opt/telegraf/telegraf.conf $TELEGRAF_OPTS
Restart=on-failure
KillMode=process
[Install]
WantedBy=multi-user.target
Alias=telegraf.service