nightingale1/etc/service/telegraf.service

23 lines
422 B
SYSTEMD

[Unit]
Description="telegraf"
After=network.target
[Service]
Type=simple
ExecStart=/opt/telegraf/usr/bin/telegraf --config etc/telegraf/telegraf.conf --output-filter opentsdb
WorkingDirectory=/opt/telegraf
KillMode=process
KillSignal=SIGQUIT
TimeoutStopSec=5
Restart=always
SuccessExitStatus=0
LimitNOFILE=65536
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=telegraf
[Install]
WantedBy=multi-user.target