16 lines
453 B
SYSTEMD
16 lines
453 B
SYSTEMD
[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 -configdirectory /etc/opt/telegraf/telegraf.d $TELEGRAF_OPTS
|
|
Restart=on-failure
|
|
KillMode=process
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
Alias=telegraf.service
|