summarylogtreecommitdiffstats
path: root/telegraf.service
diff options
context:
space:
mode:
authorÓscar García Amor2019-03-07 19:40:29 +0100
committerÓscar García Amor2019-03-07 19:40:29 +0100
commitb43ecd84c7410ad4f7009c02dd14120cd29579e2 (patch)
treebe02b8f96fbe352509b3df71e637da8033a83b31 /telegraf.service
parentef497a5c1311ebbfccd8a091deed0f0b58ce98e0 (diff)
downloadaur-b43ecd84c7410ad4f7009c02dd14120cd29579e2.tar.gz
Updated gitignore and SRCINFO
Diffstat (limited to 'telegraf.service')
-rw-r--r--telegraf.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/telegraf.service b/telegraf.service
new file mode 100644
index 00000000000..4f874c02146
--- /dev/null
+++ b/telegraf.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Plugin-driven server agent for reporting metrics into InfluxDB
+After=network.target
+
+[Service]
+User=telegraf
+Group=telegraf
+ExecStart=/usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d
+ExecReload=/bin/kill -HUP $MAINPID
+KillMode=control-group
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target