Skip to content

Commit

Permalink
Systemd does not see all shutdowns as failures
Browse files Browse the repository at this point in the history
````
[root@<hostname> ~]# systemctl status telegraf -l
● telegraf.service - The plugin-driven server agent for reporting metrics into InfluxDB
   Loaded: loaded (/usr/lib/systemd/system/telegraf.service; enabled; vendor preset: disabled)
   Active: inactive (dead) since Tue 2017-04-25 10:33:40 EDT; 14min ago
     Docs: https://github.com/influxdata/telegraf
 Main PID: 7857 (code=killed, signal=PIPE)
````

This occurs when we restart `systemd-journald`, which cause a crash/stop of telegraph seen as a STDPIPE
  • Loading branch information
djsly committed May 8, 2017
1 parent 4200018 commit 1b50d74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
1 change: 1 addition & 0 deletions scripts/telegraf.service
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 1b50d74

Please sign in to comment.