refactor telegraf.service

This commit is contained in:
Ulric Qin 2022-01-26 09:15:41 +08:00
parent 19c90d356c
commit dd1147f534
1 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,10 @@ Type=simple
ExecStart=/opt/telegraf/usr/bin/telegraf --config etc/telegraf/telegraf.conf --output-filter opentsdb
WorkingDirectory=/opt/telegraf
Restart=on-failure
KillMode=process
KillSignal=SIGQUIT
TimeoutStopSec=5
Restart=always
SuccessExitStatus=0
LimitNOFILE=65536
StandardOutput=syslog