You are not logged in.
I have a devuan (chimaera) system with runit used as init.
The system has dnsmasq installed and it is used as a local dns server, /etc/resolv.conf contains 127.0.0.1 as a nameserver:
domain xyz
search xyz
nameserver 127.0.0.1
Looking at the init scripts in /etc/rc2.d, I see S03dnsmasq and S03ntpsec (the first file is before the second file in alphabetical order).
I suspect ntpsec is started before dnsmasq, because as soon as I modified /etc/resolv.conf to use nameserver 127.0.0.1, the machine started to hang for a few minutes on boot with "starting ntp" message.
How is the startup order determined when running under runit?
The second mystery is the file /lib/runit/run_sysv_scripts which seems to run scripts from /etc/rc2.d in alphabetical order but only if a corresponding file is present under /etc/sv. /etc/sv/dnsmasq is present, but I don't see /etc/sv/ntpsec. How is the latter started during boot?
Thanks.
Offline
Marking solved and answering myself. I misread the /lib/runit/run_sysv_scripts. It runs the init script only if the corresponding service is NOT found in /etc/sv.
Offline