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
|
2016-05-23 09:42:02 +00:00
|
|
|
Environment='STDOUT=/var/log/telegraf/telegraf.log'
|
|
|
|
Environment='STDERR=/var/log/telegraf/telegraf.log'
|
2016-05-26 10:32:05 +00:00
|
|
|
ExecStart=/bin/sh -c "exec /usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d ${TELEGRAF_OPTS} >>${STDOUT} 2>>${STDERR}"
|
2016-03-05 03:11:53 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
2015-07-14 18:42:33 +00:00
|
|
|
Restart=on-failure
|
2016-05-24 14:14:58 +00:00
|
|
|
KillMode=control-group
|
2015-07-14 18:42:33 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|