systemd unit support

This commit is contained in:
Or Elimelech 2015-07-14 21:42:33 +03:00
parent c4e5e743c4
commit 0df4708267
1 changed files with 13 additions and 0 deletions

13
scripts/telegraf.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=The plugin-driven server agent for reporting metrics into InfluxDB
Documentation=https://github.com/influxdb/telegraf
After=network.target
[Service]
EnvironmentFile=-/etc/default/telegraf
User=telegraf
ExecStart=/opt/telegraf/telegraf -config /etc/opt/telegraf/telegraf.conf $TELEGRAF_OPTS
Restart=on-failure
[Install]
WantedBy=multi-user.target