diff --git a/CHANGELOG.md b/CHANGELOG.md index abfd968b9a3cd..42658c5a7541d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Bugfixes - [#2749](https://github.com/influxdata/telegraf/pull/2749): Fixed sqlserver input to work with case sensitive server collation. +- [#2716](https://github.com/influxdata/telegraf/pull/2716): Systemd does not see all shutdowns as failures ## v1.3 [unreleased] diff --git a/scripts/telegraf.service b/scripts/telegraf.service index 72a4a338e917a..cbbdc872dce6c 100644 --- a/scripts/telegraf.service +++ b/scripts/telegraf.service @@ -9,6 +9,7 @@ User=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 +RestartForceExitStatus=SIGPIPE KillMode=control-group [Install]