ctl: reset variables to avoid confusion in traces (#17486)

This commit is contained in:
Frédéric Péters 2017-07-10 12:33:50 +02:00
parent 2f9536cce8
commit 53cf3e1b15
1 changed files with 4 additions and 0 deletions

View File

@ -105,6 +105,10 @@ class CmdStart(Command):
pub.cleanup()
quixote.cleanup()
# reset variables to avoid confusion in traces
tenant_path = None
hostname = None
if sub_options.daemonize:
try:
pid = os.fork()