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 {
}
'''
'''
import server
server.shutdown()
'''
import settings
subprocess.Popen([os.path.join(settings.base_dir, 'ctl'), 'stop'],
close_fds=True, start_new_session=True)
import state
state.main.stop()
return {}
actions.register(quit, cache=False)