User-Agent: Mozilla/5.0 (X11; U; Linux i686; ja; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6 I am making an LSB 3.2 compliant printer driver package which has daemon. when I start my daemon with '-p' option using start_daemon function in /lib/lsb/init-functions, it freeze. Reproducible: Always Steps to Reproduce: call start_daemon function in the init script like this, ---- . /lib/lsb/init-functions start_daemon -p /var/run/${DAEMON}.pid /pathto/${DAEMON} ---- Actual Results: freeze. (it cause infinite loop.) the reason is in /etc/redhat-lsb/lsb_start_daemon. the while loop in lsb_start_daemon don't read "-p" option. so it cause infinite loop. according to LSB 3.2 and LSB3.1 spec, start_daemon accepts "-p" ottion. <http://refspecs.linux-foundation.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic/iniscrptfunc.html> <http://refspecs.linux-foundation.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptfunc.html> the same problem is in redhat-lsb-3.1-19.fc8.i386.rpm on Fedora9.
Created attachment 335619 [details] patch for /etc/redhat-lsb/lsb_start_daemon The attached patch correctly passes the -p argument through, breaking the forever loop.
Created attachment 343667 [details] replacement patch I think the previous patch didn't actually collect and pass on the pid file name.
Created attachment 343968 [details] patch to replace the replacement In second thought, this is probably a better patch.
Created attachment 344190 [details] lsb_start_daemon patch to fix up cases ok, here's the last revision. I swear.
I'm still having the same issue with Fedora 11 /etc/redhat-lsb/lsb_start_daemon wrapping /etc/init.d/functions daemon() start_daemon loads the CPU to 100%.
redhat-lsb-3.2-6.fc10.1 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/redhat-lsb-3.2-6.fc10.1
redhat-lsb-3.2-6.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/redhat-lsb-3.2-6.fc11
redhat-lsb-3.2-6.fc10.1 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.
redhat-lsb-3.2-6.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.