Date: 14 Jun 2001 02:35:36 +0200 From: Cyrille Lefevre <clefevre-lists@noos.fr> To: Jon Parise <jon@csh.rit.edu> Cc: Matt Dillon <dillon@earth.backplane.com>, Will Andrews <will@physics.purdue.edu>, Andrew Hesford <ajh3@usrlib.org>, Warner Losh <imp@harmony.village.org>, Mark Santcroos <marks@ripe.net>, Doug Barton <DougB@DougBarton.net>, bsddiy@163.net, freebsd-hackers@FreeBSD.ORG Subject: Re: import NetBSD rc system Message-ID: <lmmvoq3r.fsf@gits.dyndns.org> In-Reply-To: <20010611233420.I26841@csh.rit.edu> References: <200106111854.f5BIsX728995@earth.backplane.com> <20010611174717.A77956@laptop.6bone.nl> <1795096378.20010611154930@163.net> <3B2484EA.B1F04812@DougBarton.net> <200106111800.f5BI0il25446@billy-club.village.org> <200106111854.f5BIsX728995@earth.backplane.com> <200106111856.f5BIu8V39651@harmony.village.org> <20010611203749.D24399@core.usrlib.org> <20010611205158.J23562@bohr.physics.purdue.edu> <200106120305.f5C35Ri37415@earth.backplane.com> <20010611233420.I26841@csh.rit.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Jon Parise <jon@csh.rit.edu> writes: [snip] > With the proposed NetBSD-derived system, individual services are > isolated in their very own scripts, making starting / stopping > them very convenient (the only advantage I see to the SysV > layout). In addition, the integrity of dependency graph is also > maintained, while retaining extra flexibility. not always. the dependency graph works fine if you start/stop all services at once, but not individually such as : starting nfsd should required mountd but actually, it don't start it. let's try : (for testing purpose, all rc files have been modified to use relative references instead of absolute ones) $ cat rc.conf rc_configured=YES rc1=YES rc2=YES $ cat rc.d/rc1 # PROVIDE: rc1 # REQUIRE: rc2 _etc=${_etc:-${0%/*}/..} . $_etc/rc.subr name="rc1" rcvar="rc1" command="/bin/echo" command_args="rc1" required_vars="rc2" load_rc_config $name run_rc_command "$1" $ cat rc.d/rc2 # PROVIDE: rc2 _etc=${_etc:-${0%/*}/..} . $_etc/rc.subr name="rc2" rcvar="rc2" command="/bin/echo" command_args="rc2" required_vars="rc1" load_rc_config $name run_rc_command "$1" $ ./rc Thu Jun 14 02:33:23 CEST 2001 Starting rc2. rc2 Starting rc1. rc1 Thu Jun 14 02:33:24 CEST 2001 ok, rc1 depends on rc2, so rc2 is started before rc1. now, just start rc1 : $ rc.d/rc1 start Starting rc1. rc1 oops, rc2 isn't started. too bad. Cyrille. -- home: mailto:clefevre@redirect.to UNIX is user-friendly; it's just particular work: mailto:Cyrille.Lefevre@edf.fr about who it chooses to be friends with. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?lmmvoq3r.fsf>