Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 333767 - net-p2p/transmission: missing reload() in init-script
Summary: net-p2p/transmission: missing reload() in init-script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-21 09:32 UTC by Mark
Modified: 2010-10-15 11:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark 2010-08-21 09:32:54 UTC
According to https://trac.transmissionbt.com/wiki/EditConfigFiles the transmission-daemon has the ability to reload it's config by sending a HUP signal to the demon process.
Please add a reload function to the initscript, it could look like this:

reload() {
    ebegin "Reloading transmission configuration"
    killall -HUP transmission-daemon
    eend $?
}

Reproducible: Always
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-08-21 14:51:37 UTC
Please do not use killall for these things; it's going to mess up with containers.
Comment 2 Mark 2010-08-21 14:59:06 UTC
(In reply to comment #1)
> Please do not use killall for these things; it's going to mess up with
> containers.
> 

using start-stop-daemon will be better; the following works for me, as the log says "Reloading settings from "/var/transmission/config":

reload() {
    ebegin "Reloading transmission configuration"
    start-stop-daemon --signal HUP --pidfile ${pidfile}
    eend $?
}
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2010-10-15 11:53:36 UTC
Added in transmission-2.10. It has quite mangled init script but it should be much easier to understand then previous one. It has only three configuration options in conf.d file: TRANSMISSION_OPTIONS  - options for transmission-daemon, logfile and runas_user (which is now required and default to transmission but you may change defaults, of course). Enjoy.