telegraf/scripts/telegraf.service

16 lines
445 B
SYSTEMD
Raw Normal View History

2015-07-14 18:42:33 +00:00
[Unit]
Description=The plugin-driven server agent for reporting metrics into InfluxDB
2016-01-20 18:57:35 +00:00
Documentation=https://github.com/influxdata/telegraf
2015-07-14 18:42:33 +00:00
After=network.target
[Service]
EnvironmentFile=-/etc/default/telegraf
User=telegraf
ExecStart=/usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d ${TELEGRAF_OPTS}
2015-07-14 18:42:33 +00:00
Restart=on-failure
KillMode=process
2015-07-14 18:42:33 +00:00
[Install]
WantedBy=multi-user.target
Alias=telegraf.service