summaryrefslogtreecommitdiff
path: root/zuul
diff options
context:
space:
mode:
authorAntoine Musso <hashar@free.fr>2014-10-28 21:35:22 +0100
committerAntoine Musso <hashar@free.fr>2015-01-18 21:36:31 +0000
commit29eab01ba3b0a8157a265dc6c8e027387791f4cc (patch)
tree630c416921d429ec2cc56da5d6a40a81f1110459 /zuul
parent548cfda41a32fe0e7ee4f72d099b21fdbeb95404 (diff)
downloadzuul-29eab01ba3b0a8157a265dc6c8e027387791f4cc.tar.gz
Support stack on Geard embedded server
The Zuul server supports dumping stacktrace by sending a SIGUSR2 signal. Move the signal registration before the fork of the Gearman embedded server to make it support the same behavior. Clarify the relevant documentation to mention the forked process that supports the embedded Gearman server supports SIGUSR2. Additionally mentioned the log bucket being used (zuul.stack_dump) which might help fine tweaking of the logger configuration. Change-Id: I274cc7aba0eee624aafd3b75de15d6e26bdc8d21
Diffstat (limited to 'zuul')
-rwxr-xr-xzuul/cmd/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/zuul/cmd/server.py b/zuul/cmd/server.py
index 25dab6f42..65b08b405 100755
--- a/zuul/cmd/server.py
+++ b/zuul/cmd/server.py
@@ -150,6 +150,7 @@ class Server(zuul.cmd.ZuulApp):
import zuul.webapp
import zuul.rpclistener
+ signal.signal(signal.SIGUSR2, zuul.cmd.stack_dump_handler)
if (self.config.has_option('gearman_server', 'start') and
self.config.getboolean('gearman_server', 'start')):
self.start_gear_server()
@@ -203,7 +204,6 @@ class Server(zuul.cmd.ZuulApp):
signal.signal(signal.SIGHUP, self.reconfigure_handler)
signal.signal(signal.SIGUSR1, self.exit_handler)
- signal.signal(signal.SIGUSR2, zuul.cmd.stack_dump_handler)
signal.signal(signal.SIGTERM, self.term_handler)
while True:
try: