new session for restart

This commit is contained in:
j 2016-01-07 00:58:29 +05:30
parent 4c87307377
commit d04636bf69
1 changed files with 2 additions and 1 deletions

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)