Commit ee745d9b authored by Julien Muchembled's avatar Julien Muchembled

On exit, stop babeld first to give a change to send wildcard retractions

parent d7bcf391
...@@ -417,13 +417,14 @@ def main(): ...@@ -417,13 +417,14 @@ def main():
sys.exit(r) sys.exit(r)
exit.acquire() exit.acquire()
for cmd in config.daemon or (): for cmd in config.daemon or ():
cleanup.append(utils.Popen(cmd, shell=True).stop) cleanup.insert(-1, utils.Popen(cmd, shell=True).stop)
# main loop # main loop
select_list = [forwarder.select] if forwarder else [] select_list = [forwarder.select] if forwarder else []
if tunnel_manager: if tunnel_manager:
select_list.append(tunnel_manager.select) select_list.append(tunnel_manager.select)
cleanup += tunnel_manager.delInterfaces, tunnel_manager.killAll cleanup[-1:-1] = (tunnel_manager.delInterfaces,
tunnel_manager.killAll)
exit.release() exit.release()
def renew(): def renew():
raise ReexecException("Restart to renew certificate") raise ReexecException("Restart to renew certificate")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment