paulbsd-salt/states/cds/telegraf.service.j2
2020-07-10 00:58:55 +02:00

16 lines
422 B
Django/Jinja

[Unit]
Description=The plugin-driven server agent for reporting metrics into InfluxDB
Documentation=https://github.com/influxdata/telegraf
After=network.target
[Service]
EnvironmentFile=-/etc/default/telegraf
#User=telegraf
ExecStart=/usr/bin/telegraf --config $INFLUX_CONFIG
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartForceExitStatus=SIGPIPE
KillMode=control-group
[Install]
WantedBy=multi-user.target