cleaner api shutdown

This commit is contained in:
j 2016-01-31 22:16:28 +05:30
parent 567952d91d
commit 5f1325c7aa

View file

@ -84,12 +84,7 @@ def quit(data):
returns { returns {
} }
''' '''
''' import state
import server state.main.stop()
server.shutdown()
'''
import settings
subprocess.Popen([os.path.join(settings.base_dir, 'ctl'), 'stop'],
close_fds=True, start_new_session=True)
return {} return {}
actions.register(quit, cache=False) actions.register(quit, cache=False)