From owner-freebsd-questions@FreeBSD.ORG Thu May 31 21:12:39 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 844FF16A468 for ; Thu, 31 May 2007 21:12:39 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: from duane.dbq.yournetplus.com (duane.dbq.yournetplus.com [65.124.230.214]) by mx1.freebsd.org (Postfix) with ESMTP id 5B49113C45A for ; Thu, 31 May 2007 21:12:39 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: from [192.168.1.10] (unknown [192.168.1.1]) by duane.dbq.yournetplus.com (Postfix) with ESMTP id 1E6DB6D431 for ; Thu, 31 May 2007 21:13:01 +0000 (UTC) Date: Thu, 31 May 2007 21:13:00 +0000 (UTC) From: Duane Hill X-X-Sender: d.hill@duane.dbq.yournetplus.com To: freebsd-questions@freebsd.org In-Reply-To: <10902043.post@talk.nabble.com> Message-ID: <20070531211051.N499@duane.dbq.yournetplus.com> References: <10902043.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: startup / shutdown script (rc.d) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 May 2007 21:12:39 -0000 On Thu, 31 May 2007, gmoniey wrote: > > Hi, > > I was wondering if there is a simple way to create 1 script that will be > called during startup and shutdown. Basically, I am looking for something > like this: > > if startup > run command 1 with params > run command 2 with params > run command 3 with params > > if shutdown > run command 4 with params > run command 5 with params > run command 6 with params > > i have tried lookin up rc.d documentation, but it very vague and difficult > to understand...thanks I don't know if this is too vague as well or not. However, I used the man page for 'rc' on startup/shutdown scripts. Just do 'man rc'.