Skip to content

Commit

Permalink
SIGHUP the telegraf process on configuration change
Browse files Browse the repository at this point in the history
This commit ensures that any configuration changes made after Telegraf
has been started are picked up by the agent.

Fixes #4.
  • Loading branch information
stuartbfox committed Mar 10, 2016
1 parent 489a6c7 commit db5e9ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
mode => '0640',
owner => 'telegraf',
group => 'telegraf',
notify => Class['::telegraf::service'],
require => Class['::telegraf::install'],
}

Expand Down
1 change: 1 addition & 0 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
ensure => running,
hasstatus => true,
enable => true,
restart => 'pkill -HUP telegraf',
require => Class['::telegraf::config'],
}
}
Expand Down

0 comments on commit db5e9ab

Please sign in to comment.