summarylogtreecommitdiffstats
path: root/telegraf.service
diff options
context:
space:
mode:
authorNicolas Leclercq2016-09-07 16:33:22 +0200
committerNicolas Leclercq2016-09-07 17:02:52 +0200
commit83d8510942318b11ade190a924435a5c8eac06d2 (patch)
tree55de188350c6b93531c652228ccc93325c395680 /telegraf.service
parent48491a7067dc5186e7e2738677797e8ac80c40fc (diff)
downloadaur-83d8510942318b11ade190a924435a5c8eac06d2.tar.gz
clean up PKGBUILD code
Diffstat (limited to 'telegraf.service')
-rw-r--r--telegraf.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/telegraf.service b/telegraf.service
new file mode 100644
index 00000000000..b129f967c84
--- /dev/null
+++ b/telegraf.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=The plugin-driven server agent for reporting metrics into InfluxDB
+Documentation=https://github.com/influxdata/telegraf
+After=network-online.target
+
+[Service]
+EnvironmentFile=-/etc/default/telegraf
+User=telegraf
+Group=telegraf
+ExecStart=/usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d ${TELEGRAF_OPTS}
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=on-failure
+KillMode=control-group
+
+[Install]
+WantedBy=multi-user.target