nightingale/etc/service/telegraf.service

23 lines
422 B
SYSTEMD
Raw Normal View History

2021-12-05 15:39:49 +08:00
[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
2022-01-26 09:15:41 +08:00
KillMode=process
KillSignal=SIGQUIT
TimeoutStopSec=5
Restart=always
2021-12-05 15:39:49 +08:00
SuccessExitStatus=0
LimitNOFILE=65536
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=telegraf
[Install]
WantedBy=multi-user.target