From owner-freebsd-stable@FreeBSD.ORG Tue Jun 9 18:58:26 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31066106566B for ; Tue, 9 Jun 2009 18:58:26 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id B4D128FC23 for ; Tue, 9 Jun 2009 18:58:24 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 23560 invoked by uid 399); 9 Jun 2009 18:58:17 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 9 Jun 2009 18:58:17 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4A2EB0C6.6040705@FreeBSD.org> Date: Tue, 09 Jun 2009 11:58:14 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.21 (X11/20090423) MIME-Version: 1.0 To: allnetgroup@yahoo.com References: <143776.42704.qm@web34307.mail.mud.yahoo.com> In-Reply-To: <143776.42704.qm@web34307.mail.mud.yahoo.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: I need to add commands that starts every time at system boot. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 18:58:26 -0000 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? If you're Ok with running your commands late in the boot process then /etc/rc.local is your best bet. If what you're doing needs to happen in a certain order relative to the rest of the boot system then you'll want to write your own rc.d-style script and put it in /usr/local/etc/rc.d/. There are several articles in the Handbook that will help you in writing your own script. hth, Doug -- This .signature sanitized for your protection