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 <[email protected]> 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
> 


 

Reply via email to