pkgbuilds/telegraf/telegraf.service

20 lines
452 B
SYSTEMD
Raw Permalink Normal View History

2024-04-12 07:21:50 -06:00
[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