Re: RCng/NTP Catch-22

From: Mike Makonnen <mtm_at_identd.net>
Date: Thu, 21 Oct 2004 18:29:20 +0300
On Thu, Oct 21, 2004 at 08:19:14AM -0700, Brooks Davis wrote:
> The requiement of LOGIN is bogus.  Things that configure important
> features like /dev must come before users might try to use them.
> The current setup is extra nonsensical because devd is already
> running when rc.d/devfs starts beating on things in /dev.
> 
> I'll commit the following patch soon if there are no objections.
> 
> -- Brooks
> 
> Index: devfs
> ===================================================================
> RCS file: /home/ncvs/src/etc/rc.d/devfs,v
> retrieving revision 1.9
> diff -u -p -r1.9 devfs
> --- devfs	7 Oct 2004 13:55:25 -0000	1.9
> +++ devfs	21 Oct 2004 15:12:52 -0000
> _at__at_ -4,8 +4,7 _at__at_
>  #
>  
>  # PROVIDE: devfs
> -# REQUIRE: LOGIN
> -# BEFORE:  securelevel
> +# BEFORE:  NETWORKING securelevel
>  # KEYWORD: nojail
>  
>  . /etc/rc.subr

When I was workin on this 'way back when..' I tried to keep the general
order in /etc/rc because I didn't know if someone had a reason I didn't
know about for having something before or after something else. So I 
kept the general order in /etc/rc and figured we would fix things as
they were reveiwed. This seems to be one of those. Your patch is
missing a requirement for rcconf and mountcrit remote. devfs can't be
run before NETWORKING because it depends on at least one binary in
/usr/sbin. See my patch and reply to Andre.

Cheers.
-- 
Mike Makonnen  | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
mtm_at_identd.net | Fingerprint: AC7B 5672 2D11 F4D0 EBF8  5279 5359 2B82 7CD4 1F55
mtm_at_FreeBSD.Org| FreeBSD - Unleash the Daemon !
Received on Thu Oct 21 2004 - 13:29:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:18 UTC