Add 'deluged' script to start the deluge daemon.

This commit is contained in:
Andrew Resch 2007-09-20 19:56:05 +00:00
parent 66192d0f8d
commit ec5c970499
2 changed files with 9 additions and 0 deletions

View File

@ -80,3 +80,11 @@ def main():
if options.ui:
log.info("Starting 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()

View File

@ -195,4 +195,5 @@ setup(
entry_points = """
[console_scripts]
deluge = deluge.main:main
deluged = deluge.main:start_daemon
""")