Date: Sun, 7 Jun 2009 08:30:36 -1000 From: Clifton Royston <cliftonr@lava.net> To: AES <allnetgroup@yahoo.com> Cc: freebsd-stable@freebsd.org Subject: Re: I need to add commands that starts every time at system boot. Message-ID: <20090607183035.GA22240@lava.net> In-Reply-To: <143776.42704.qm@web34307.mail.mud.yahoo.com> References: <143776.42704.qm@web34307.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 07, 2009 at 10:29:57AM -0700, AES wrote: > I need to add commands that starts every time at system boot. > > which script is the one that starts first and where can I find it? You should add a script of your own to the directory /usr/local/etc/rc.d, and have it check the first parameter to see under what circumstances it is being invoked. If the first parameter is "start", then the system is being started, or at least you are requesting that your script be run as if it were starting. I strongly recommend against adding anything to the /etc/rc script itself. If you feel you just *can't* do it via a script in /usr/local/etc/rc.d, which is the better way, add a script called /etc/rc.local and that will be run after all the other start-up steps. "man rc" for more information, man "rcorder" if you need to control the order in which your script runs relative to other startup scripts. -- Clifton -- Clifton Royston -- cliftonr@iandicomputing.com / cliftonr@lava.net President - I and I Computing * http://www.iandicomputing.com/ Custom programming, network design, systems and network consulting services
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090607183035.GA22240>