Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 375731

Summary: app-admin/collectd-5.0.0-r1 should be update with a new initd script
Product: Gentoo Linux Reporter: Conrad Kostecki <conikost>
Component: New packagesAssignee: Andreas K. Hüttel <dilfridge>
Status: RESOLVED FIXED    
Severity: normal CC: bugs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Conrad Kostecki gentoo-dev 2011-07-20 08:12:39 UTC
Hi, at start of collectd, it gives me this warning:
WARNING: -c/--chuid is deprecated and will be removed in the future, please use -u/--user instead
Comment 1 Johan Bergström 2011-08-23 09:09:16 UTC
Fix inlined (using patch would most likely take longer than doing this by hand):
--- files/collectd.initd	2011-04-24 19:31:01.000000000 +0200
+++ files/collectd.initd-r1	2011-08-23 10:25:25.000000000 +0200
@@ -46,7 +46,7 @@
 	[ -d /var/run/collectd ] || mkdir /var/run/collectd && chown collectd:collectd /var/run/collectd
 
 	ebegin "Starting collectd"
-	start-stop-daemon --start -c "${COLLECTD_USER}:collectd" \
+	start-stop-daemon --start --user "${COLLECTD_USER}:collectd" \
 		--nicelevel "${COLLECTD_NICELVL}" --exec /usr/sbin/collectd -- \
 			-P "${COLLECTD_PIDFILE}" -C "${COLLECTD_CFGFILE}"
 	eend $? "Failed to start collectd"
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2011-08-25 21:02:51 UTC
Fixed, thanks.