I'm running dnscache and tinydns on the parent system, started through daemontools with /usr/local/etc/rc.d/svscan.sh. I also have a number of jails configured in /etc/rc.conf My problem is the jails contain instances of Apache, qmail, and other DNS dependent services which need tinydns running on the parent system, but jails are executed before /usr/local/etc/rc.d/svscan.sh. So all the jails boot up first, then djbdns services are started. Is there some easy way to reverse this order, so svscan is started first and jails started afterward? Tony Arcieri
On 5/12/05, Tony Arcieri <tarcieri@atmos.colostate.edu> wrote:> Is there some easy way to reverse this order, so svscan is started first and > jails started afterward?Rename the svscan.sh script to 000svscan.sh so that it shows up first in a directory listing and is run before the jail scripts (jail-x.x.x.x.sh in my case). man rc(8) has a lot of good points to read through if you have any further questions. -- Jon Simola Systems Administrator ABC Communications
* Tony Arcieri <tarcieri@atmos.colostate.edu> [20050513 03:21]:> Is there some easy way to reverse this order, so svscan is started first and > jails started afterward?Follow the author's instructions, and put this line into /etc/rc.local: csh -cf '/command/svscanboot &' qvb -- pica