rcrun onestart failed

Uwe Münzberg uwe.muenzberg at arcor.de
Tue Dec 18 01:37:09 PST 2018


I figured out the reason.

/etc/rc sources /etc/rc.subr and then calls run_rc_script for each file in /etc/rc.d. These script sources rc.subr and call dummy_rc_command for startup. dummy_rc_command calls set_provide_list, but $provide_list is empty. The reason is that rc.subr is execute only one time. If I commented out lines 46-48 it is called every time also if a script from /etc/rc.d is loaded by run_rc_script and the $provide_list is correct.

After reboot rcone works like expected.

Uwe

> Uwe Münzberg <uwe.muenzberg at arcor.de> hat am 7. Dezember 2018 um 11:52 geschrieben:
> 
> 
>     Hello,
> 
> 
>     I have some daemons installed on my desktop system that only runs if needed (for instance mysql). I normally start this stuff
> 
>     with rcone mysql. Since I upgrade to 5.4.0 I get a list of dependencies but the service don't come up. The normal startscript
> 
>     /usr/local/etc/rc.d/mysql onestart runs as expected. If I enable the service in rc.conf and reboot, it also comes up.
> 
>     Does anyone know what happens with rcrun onestart?
> 
> 
>     Uwe
> 


 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20181218/44571346/attachment.htm>


More information about the Users mailing list