mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +00:00
Add 'deluged' script to start the deluge daemon.
This commit is contained in:
parent
66192d0f8d
commit
ec5c970499
2 changed files with 9 additions and 0 deletions
|
@ -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()
|
||||||
|
|
1
setup.py
1
setup.py
|
@ -195,4 +195,5 @@ setup(
|
||||||
entry_points = """
|
entry_points = """
|
||||||
[console_scripts]
|
[console_scripts]
|
||||||
deluge = deluge.main:main
|
deluge = deluge.main:main
|
||||||
|
deluged = deluge.main:start_daemon
|
||||||
""")
|
""")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue