Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349803 - net-p2p/transmission-2.12: default configuration and init files forbid use of syslog
Summary: net-p2p/transmission-2.12: default configuration and init files forbid use of...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-26 17:31 UTC by Maxime de Roucy
Modified: 2011-02-12 01:49 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 Maxime de Roucy 2010-12-26 17:31:23 UTC
in /usr/portage/net-p2p/transmission/files/transmission-daemon.initd.5
/usr/bin/transmission-daemon is always called with "--logfile" option so there is no other way to use syslog (syslog is used when --logfile isn't set) than modifying the init script.

Reproducible: Always
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2010-12-29 09:19:47 UTC
Thank you for report. What do you think about such change:

--- /usr/portage/net-p2p/transmission/files/transmission-daemon.initd.5	2010-11-11 19:06:58.000000000 +0300
+++ transmission-daemon.initd.6	2010-12-29 11:57:53.000000000 +0300
@@ -52,7 +52,8 @@
 
 	ebegin "Starting transmission daemon"
 	start-stop-daemon --start --quiet --background --pidfile ${pidfile} ${SSD_OPTIONS} \
-		--exec /usr/bin/transmission-daemon -- --pid-file ${pidfile} --logfile ${logfile} \
+		--exec /usr/bin/transmission-daemon -- --pid-file ${pidfile} \
+		$(test ${logfile} != "none" && echo --logfile ${logfile}) \
 		${TRANSMISSION_OPTIONS}
 	eend $?
 }

Will it work for you if you set logfile=none in /etc/conf.d/transmission ?
Comment 2 Maxime de Roucy 2010-12-29 18:41:05 UTC
I think it's good ..
For my part I changed "none" to "syslog" with an explanation in the /etc/conf.d/transmission-daemon file.
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2011-02-12 01:49:21 UTC
Fixed in 2.21. 2.21 is hardmasked due to libevent-2, but I hope we are close to unmasking... Thank you for report!