Skip to content

Commit

Permalink
Log to systemd journal
Browse files Browse the repository at this point in the history
Let's align to InfluxDB 1.0 logging policy and log to systemd journal by
default.

closes #1732
  • Loading branch information
Ririsoft authored and jackzampolin committed Oct 7, 2016
1 parent a1345b2 commit 884e740
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/telegraf.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ After=network.target
[Service]
EnvironmentFile=-/etc/default/telegraf
User=telegraf
Environment='STDOUT=/var/log/telegraf/telegraf.log'
Environment='STDERR=/var/log/telegraf/telegraf.log'
ExecStart=/bin/sh -c "exec /usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d ${TELEGRAF_OPTS} >>${STDOUT} 2>>${STDERR}"
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
KillMode=control-group
Expand Down

0 comments on commit 884e740

Please sign in to comment.