diff --git a/oml/update.py b/oml/update.py index 8e934f2..daba700 100644 --- a/oml/update.py +++ b/oml/update.py @@ -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)