Re: Using jails and djbdns

2005-05-13 Thread Joan Picanyol i Puig
* Tony Arcieri [EMAIL PROTECTED] [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
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Using jails and djbdns

2005-05-13 Thread Paco Hope
On Fri, 13 May 2005, Joan Picanyol i Puig wrote:

 * Tony Arcieri [EMAIL PROTECTED] [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 '

I don't think any of the suggestions so far are going to do it.  The
reason is this: both /etc/rc.local and all things in /usr/local/etc/rc.d
will be executed after the builtin logid for launching jails is
executed.

The problem here is that if you use the standard /etc/rc.conf means for
launching jails, (take a look at /etc/defaults/rc.conf for an example),
the jail commands will be executed first.  The last thing /etc/rc does is
invoke /etc/rc.local and all the /usr/local/etc/rc.d scripts.  His problem
is that he needs DNS up *before* the jail commands run.

Here's a hackish way to do it that might work.

1. Move the /usr/local/etc/rc.d/svscan.sh script out of
/usr/local/etc/rc.d.  Maybe put it in /usr/local/etc.  Just put it
somewhere where it won't get executed automatically.

2. Put the following lines in /etc/rc.conf
named_enable=YES
named_program=/usr/local/etc/svscan.sh # (if this is where you put it)
named_flags=start
unset named_chrootdir # defeat some built-in BIND-oriented logic
unset named_chroot_autoupdate # ditto

The logic built into /etc/rc launches DNS before jails.  By hijacking the
named flags and using them for DJB, you should be able to get DJB to
launch at the appropriate time.

Good luck.

Paco
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Using jails and djbdns

2005-05-12 Thread Jon Simola
On 5/12/05, Tony Arcieri [EMAIL PROTECTED] 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
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]