diff --git a/CHANGELOG.md b/CHANGELOG.md index e773a6e82..7ec751f2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,7 +28,7 @@ time before a new metric is included by the plugin. ### Bugfixes -- [#1252](https://github.com/influxdata/telegraf/pull/1252): Fix systemd service. Thanks @zbindenren! +- [#1252](https://github.com/influxdata/telegraf/pull/1252) & [#1279](https://github.com/influxdata/telegraf/pull/1279): Fix systemd service. Thanks @zbindenren & @PierreF! - [#1221](https://github.com/influxdata/telegraf/pull/1221): Fix influxdb n_shards counter. - [#1258](https://github.com/influxdata/telegraf/pull/1258): Fix potential kernel plugin integer parse error. - [#1268](https://github.com/influxdata/telegraf/pull/1268): Fix potential influxdb input type assertion panic. diff --git a/scripts/telegraf.service b/scripts/telegraf.service index 5e42c8c17..a7824c9a7 100644 --- a/scripts/telegraf.service +++ b/scripts/telegraf.service @@ -8,7 +8,7 @@ EnvironmentFile=-/etc/default/telegraf User=telegraf Environment='STDOUT=/var/log/telegraf/telegraf.log' Environment='STDERR=/var/log/telegraf/telegraf.log' -ExecStart=/bin/sh -c "/usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d ${TELEGRAF_OPTS} >>${STDOUT} 2>>${STDERR}" +ExecStart=/bin/sh -c "exec /usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d ${TELEGRAF_OPTS} >>${STDOUT} 2>>${STDERR}" ExecReload=/bin/kill -HUP $MAINPID Restart=on-failure KillMode=control-group