- Code: Select all
# deluged - Deluge daemon
# The daemon component of Deluge BitTorrent client. Deluge UI clients
# connect to this daemon via DelugeRPC protocol.
description "Deluge daemon"
author "Deluge Team"
start on filesystem and static-network-up
stop on runlevel 
respawn limit 5 30
exec start-stop-daemon -S -u "deluge" -c "deluge:deluge" -k 007 -x /usr/bin/deluged -- -p 58846
exec start-stop-daemon -S -u "deluge2" -c "deluge2:deluge2" -k 007 -x /usr/bin/deluged -- -p 58847
To be honest I don't really understand the first part of the script too well, but what I think I know is that both exec lines should be run during the boot process. The problem I'm having is that after boot, only the second process is running. This would lead me to believe that the second line is killing the already running process before starting the second. However, if I comment out the second line and then run it manually, (everything after the exec) the process starts normally with no errors and both daemons are running and contactable. Anyone know what I'm doing wrong, or where to look for more evidence of what's happening? Is there a log where errors in upstart scripts are logged? Thanks.