pkgbuilds/telegraf/telegraf.service
2024-04-12 08:21:50 -05:00

20 lines
452 B
Desktop File

[Unit]
Description=Plugin-driven server agent for reporting metrics into InfluxDB
After=network.target
[Service]
Type=notify
User=telegraf
Group=telegraf
DynamicUser=yes
ExecStart=/usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartForceExitStatus=SIGPIPE
KillMode=mixed
TimeoutStopSec=5
LimitMEMLOCK=8M:8M
[Install]
WantedBy=multi-user.target