From 0df470826729837f3394c19bb18930869558e2f4 Mon Sep 17 00:00:00 2001 From: Or Elimelech <0r3limelech@gmail.com> Date: Tue, 14 Jul 2015 21:42:33 +0300 Subject: [PATCH] systemd unit support --- scripts/telegraf.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scripts/telegraf.service diff --git a/scripts/telegraf.service b/scripts/telegraf.service new file mode 100644 index 000000000..a5a764fef --- /dev/null +++ b/scripts/telegraf.service @@ -0,0 +1,13 @@ +[Unit] +Description=The plugin-driven server agent for reporting metrics into InfluxDB +Documentation=https://github.com/influxdb/telegraf +After=network.target + +[Service] +EnvironmentFile=-/etc/default/telegraf +User=telegraf +ExecStart=/opt/telegraf/telegraf -config /etc/opt/telegraf/telegraf.conf $TELEGRAF_OPTS +Restart=on-failure + +[Install] +WantedBy=multi-user.target