> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:owner-freebsd-
> [EMAIL PROTECTED] On Behalf Of Jack Stone
> Sent: Sunday, March 25, 2007 8:09 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: rc.d scripts
> 
> >From: Tom Grove <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >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 

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

Reply via email to