Page 1 of 1

HOWTO: Upstart script for Ubuntu 13.04

Posted: Wed May 08, 2013 1:03 am
by peacefulreason
I am unsure if it's an issue with the new upstart, but I could not get upstart to work without changing "start on." hopefully this helps someone as it took me some time to figure out. WebUI can remain the same.

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 the media server after network and filesystem
# Otherwise this lead to a unresponsive server
start on filesystem and net-device-up IFACE!=lo

stop on runlevel [016]

respawn
respawn limit 5 30

env uid=deluge
env gid=deluge
env umask=007

exec start-stop-daemon -S -c $uid:$gid -k $umask -x /usr/bin/deluged -- -d

Re: HOWTO: Upstart script for Ubuntu 13.04

Posted: Wed May 08, 2013 2:34 am
by Cas
It sounds like a bug because it should work with "stopped networking" however can you try with the alternative "static-network-up":

Code: Select all

start on filesystem and static-network-up