From 02baa696c3775529369c44f6209f824799dbcc71 Mon Sep 17 00:00:00 2001 From: clheikes <24684947+clheikes@users.noreply.github.com> Date: Wed, 18 Oct 2017 15:57:32 -0500 Subject: [PATCH] Fix TELEGRAF_OPTS expansion in systemd service unit (#3354) --- scripts/telegraf.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/telegraf.service b/scripts/telegraf.service index cbbdc872d..ff9860d5c 100644 --- a/scripts/telegraf.service +++ b/scripts/telegraf.service @@ -6,7 +6,7 @@ After=network.target [Service] EnvironmentFile=-/etc/default/telegraf User=telegraf -ExecStart=/usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d ${TELEGRAF_OPTS} +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 RestartForceExitStatus=SIGPIPE