Closed Bug 894577 Opened 12 years ago Closed 12 years ago

respond to SIGHUP by stopping, reloading config, then continuing

Categories

(Socorro :: Backend, task)

x86_64
Linux
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lars, Assigned: lars)

Details

(Whiteboard: [qa-])

in current Socorro applications, SIGTERM and SIGHUP signals both will cause an app to shut down. Traditionally (though not originally), SIGHUP is used to cause an app to reload its configuration and continue. It is a rather simple matter to make Socorro apps behave in this manner.
Assignee: nobody → lars
We should add "reload" subcommands to the init scripts too, they just need to do something like: killproc -p ${pidfile} $httpd -HUP
(In reply to Robert Helmer [:rhelmer] from comment #1) > We should add "reload" subcommands to the init scripts too, they just need > to do something like: > > killproc -p ${pidfile} $httpd -HUP Well not $httpd, sorry grabbed an example from Apache's init script :)
PR 1340 (https://github.com/mozilla/socorro/pull/1340) shows how simple of a change it really is. I've tested this on the processor and a stand alone collector. In both cases, I started the apps, then edited the ini file, and then `kill -s 1 $PID`. The apps picked up their new configs, reconnected to all their resources and continued from where they had left off.
Commit pushed to master at https://github.com/mozilla/socorro https://github.com/mozilla/socorro/commit/a50836064800b894a3e25677158963bc4fe685d6 Merge pull request #1340 from twobraids/sighup fixes Bug 894577 - add config reload behavior to all Socorro apps
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
Target Milestone: --- → 57
You need to log in before you can comment on or make changes to this bug.