[Bug 1031035] Re: Transmission daemon upstart support
Patrick Winchester
patrick.winchester at ymail.com
Wed Aug 22 21:20:26 UTC 2012
Hi Dmitrijs,
I have attached an updated version of the script that should now match your criteria.
Thanks for sponsoring this.
** Attachment removed: "transmission daemon upstart script"
https://bugs.launchpad.net/ubuntu/+source/transmission/+bug/1031035/+attachment/3242782/+files/transmission-daemon.upstart
** Attachment added: "transmission-daemon.upstart"
https://bugs.launchpad.net/ubuntu/+source/transmission/+bug/1031035/+attachment/3272456/+files/transmission-daemon.upstart
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1031035
Title:
Transmission daemon upstart support
Status in “transmission” package in Ubuntu:
Confirmed
Bug description:
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/transmission/+bug/1031035/+subscriptions
More information about the Ubuntu-sponsors
mailing list