Date: Mon, 26 Mar 2007 07:07:22 -0500 From: "Rick Apichairuk" <rick@logicmerc.com> To: "'Jack Stone'" <antennex@hotmail.com>, <freebsd@voidmain.net>, <questions@freebsd.org> Subject: RE: rc.d scripts Message-ID: <20070326121316.728785C2B@www.logicmerc.com> In-Reply-To: <BAY125-F17AD6981386EBE50B44E82CC680@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd- > questions@freebsd.org] On Behalf Of Jack Stone > Sent: Sunday, March 25, 2007 8:09 AM > To: freebsd@voidmain.net; questions@freebsd.org > Subject: RE: rc.d scripts > > >From: Tom Grove <freebsd@voidmain.net> > >To: questions@freebsd.org > >Subject: rc.d scripts > >Date: Fri, 23 Mar 2007 09:15:29 -0400 > > > >Does anyone know how to make a script in /etc/rc.d run last? For instance > >I want dhclient to be the last script in /etc/rc.d/ to run. Any help is > >much appreciated. > > > >-Tom > > This may have already been answered by others, but I believe just rename the > script with a prefix of "z" for example: "zmyscript.sh" or "zzmyscript" to > make it very last beyond the first one with a "z". > > It works for me. > You might have also noticed that some ports come with number prefixed rc startup scripts. You can prefix your scripts with numbers like: 01_apache.sh 02_mysql.sh 03_pgsql.sh That way you can always adjust the exact order. Best Regards, Rick Apichairuk
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070326121316.728785C2B>