Skip to content

Commit

Permalink
Merge pull request #537 from fluent/fix_sighup_does_not_reload_conf
Browse files Browse the repository at this point in the history
fix SIGHUP does not reload config
  • Loading branch information
repeatedly committed Jan 12, 2015
2 parents 0365704 + a4695bc commit 659f5dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fluent/supervisor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@ def install_supervisor_signal_handlers
trap :HUP do
$log.debug "fluentd supervisor process get SIGHUP"
$log.info "restarting"
read_config
apply_system_config
if pid = @main_pid
Process.kill(:TERM, pid)
# don't resuce Erro::ESRSH here (invalid status)
Expand Down

0 comments on commit 659f5dd

Please sign in to comment.