[Bug 1031035] [NEW] Transmission daemon upstart support

Launchpad Bug Tracker 1031035 at bugs.launchpad.net
Tue Aug 14 10:53:14 UTC 2012


You have been subscribed to a public bug by Marcus (m-beyer5):

I have attached an upstart script to run transmission-daemon with upstart instead of sysvinit.
This has two advantages:

1.
Upstart supports graceful shutdown timeouts. This means upstart will
wait for transmission to exit properly for an amount of time before
killing it (in this script 30 seconds) which is useful if transmission
needs to transmit a lot of status data to trackers on exiting.

2.
Upstart supports automatic respawning when transmission-daemon crashes /
exits with a non-clean exit code. This happened to me quite regularly
every couple of weeks and it's a helpful feature. With the default
setting upstart will try to restart transmission up to 10 times with 5
second intervals between the tries.

For deployment, just copy the
file into the debian directory and debhelper will take care of proper
installation, no additional work needed. On debian were there is no
upstart debhelper will just install the plain old init file, so no
trouble there either.
I tested the script on precise, it works very well for me but I'm sure additional testing will not hurt.

Please feel free to publish this under any license / copyright / author
/ whatever you see fit. Hope this can be useful.

** Affects: transmission (Ubuntu)
     Importance: Undecided
         Status: Confirmed

-- 
Transmission daemon upstart support
https://bugs.launchpad.net/bugs/1031035
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list