Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 375731 - app-admin/collectd-5.0.0-r1 should be update with a new initd script
Summary: app-admin/collectd-5.0.0-r1 should be update with a new initd script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-20 08:12 UTC by Conrad Kostecki
Modified: 2011-08-25 21:02 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 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.