new session for restart

This commit is contained in:
j 2016-01-07 00:58:29 +05:30
parent 4c87307377
commit d04636bf69

View file

@ -216,6 +216,7 @@ def restart(data):
'''
if data.get('update'):
download()
subprocess.Popen([os.path.join(settings.base_dir, 'ctl'), 'restart'], close_fds=True)
subprocess.Popen([os.path.join(settings.base_dir, 'ctl'), 'restart'],
close_fds=True, start_new_session=True)
return {}
actions.register(restart, cache=False)