add a start_daemon method

This commit is contained in:
Damien Churchill 2009-09-24 08:33:35 +00:00
parent 401aa28ba8
commit 1b6d92c778

View File

@ -670,6 +670,13 @@ class WebApi(JSONComponent):
d.addErrback(on_connect_failed, host_id) d.addErrback(on_connect_failed, host_id)
return main_deferred return main_deferred
@export
def start_daemon(self, port):
"""
Starts a local daemon.
"""
client.start_daemon(port, deluge.configmanager.get_config_dir())
@export @export
def stop_daemon(self, host_id): def stop_daemon(self, host_id):
""" """