Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jun 2003 10:10:15 -0400 (EDT)
From:      Jerry McAllister <jerrymc@clunix.cl.msu.edu>
To:        on@cs.ait.ac.th (Olivier Nicole)
Cc:        freebsd-questions@freebsd.org
Subject:   Re: adding script to the startup
Message-ID:  <200306111410.h5BEAFak018507@clunix.cl.msu.edu>
In-Reply-To: <200306110406.LAA07174@banyan.cs.ait.ac.th> from "Olivier Nicole" at Jun 11, 2003 11:06:06 AM

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> > how can I add my script to the startup programs
> > is it /etc/rc file to edit or some other.
> 
> You could for example add it to /etc/rc.local

No.  Don't edit /etc/rc.local to run startup scripts.   
You should learn about using /usr/local/etc/rc.d
Put a startup script in there with a '.sh' ending on the
name and it will run at boot/startup time.
It is all described in man and other documentation.

////jerry

> 
> Create it if it does not exist.
> 
> Olivier
> _______________________________________________



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306111410.h5BEAFak018507>