I emerged sys-apps/xinetd into a newly built gentoo system, and get an error when starting the service: ian2 ~ # /etc/init.d/xinetd start * Starting xinetd ... /sbin/start-stop-daemon: --start needs --exec or --startas Try `/sbin/start-stop-daemon --help' for more information. Reproducible: Always Steps to Reproduce: 1. emerge sys-apps/xinetd 2. /etc/init.d/xinetd start Actual Results: * Starting xinetd ... /sbin/start-stop-daemon: --start needs --exec or --startas Try `/sbin/start-stop-daemon --help' for more information. Expected Results: * Starting xinetd ... [ ok ] Examining the start clause in /etc/init.d/xinetd I see the following line: start-stop-daemon --start --pidfile /var/run/xinetd.pid -- \ xinetd -pidfile /var/run/xinetd.pid ${XINETD_OPTS} The command is incorrect. I modified it to this start-stop-daemon --start --exec /usr/sbin/xinetd -- \ -pidfile /var/run/xinetd.pid ${XINETD_OPTS} and it worked.
This is a problem with /sbin/start-stop-daemon from sys-apps/baselayout-1* On a box with sys-apps/baselayout-2* and start-stop-daemon from sys-apps/openrc-0.4.1-r1, xinetd gets started without any problems. I tested the changes Ian suggested with baselayout-2*/openrc-0.4.1-r1 as well and with his changes, the init script works with start-stop-daemon from both packages. Reassigning to base-system herd.
Created attachment 177089 [details, diff] xinetd.rc6.diff Ian's suggestion in handy patch form :)
I have two amd64 systems, one had the problem, one didn't. I noticed on the old one (that did NOT have the problem) that there was a note in /etc/init.d/xinetd about a workaround for bug 25754. That bug was interesting, but for a much older version of baselayout. I copied that file over to the new machine, and it worked. What bothers me is that both systems are at the same revision of xinetd, but this got changed mid-revision. There's been no version bump. I tried this specific fix; it works fine. So my plea here is to get this bumped with the fix. (I don't want to go to baselayout-2 until it hits stable.)
added to cvs, thanks http://sources.gentoo.org/sys-apps/xinetd/files/xinetd.rc6?r1=1.20&r2=1.21