mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 12:04:10 +00:00
Add 'deluged' script to start the deluge daemon.
This commit is contained in:
parent
66192d0f8d
commit
ec5c970499
@ -80,3 +80,11 @@ def main():
|
|||||||
if options.ui:
|
if options.ui:
|
||||||
log.info("Starting ui..")
|
log.info("Starting ui..")
|
||||||
UI()
|
UI()
|
||||||
|
|
||||||
|
def start_daemon():
|
||||||
|
"""Entry point for daemon script"""
|
||||||
|
log.info("Deluge daemon %s", deluge.common.get_version())
|
||||||
|
log.info("Starting daemon..")
|
||||||
|
pid = os.fork()
|
||||||
|
if not pid:
|
||||||
|
Daemon()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user