From owner-freebsd-questions@FreeBSD.ORG Sat Feb 9 18:10:22 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 560AB16A419 for ; Sat, 9 Feb 2008 18:10:22 +0000 (UTC) (envelope-from fbsd06+S6=ff01d73b@mlists.homeunix.com) Received: from turtle-out.mxes.net (turtle-out.mxes.net [216.86.168.191]) by mx1.freebsd.org (Postfix) with ESMTP id 27F7813C461 for ; Sat, 9 Feb 2008 18:10:22 +0000 (UTC) (envelope-from fbsd06+S6=ff01d73b@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by turtle-in.mxes.net (Postfix) with ESMTP id 20099163F80 for ; Sat, 9 Feb 2008 12:45:21 -0500 (EST) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 7176223E49B for ; Sat, 9 Feb 2008 12:45:19 -0500 (EST) Date: Sat, 9 Feb 2008 17:45:16 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20080209174516.7f82a967@gumby.homeunix.com.> In-Reply-To: <1563a4fd0802070549r71731883t9d606a2e62f67d4d@mail.gmail.com> References: <1563a4fd0802060609j59451879h3920be790d7667c0@mail.gmail.com> <47A9FB98.4020907@bsdforen.de> <1563a4fd0802070549r71731883t9d606a2e62f67d4d@mail.gmail.com> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.7; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: script to be executed on system startup. 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: Sat, 09 Feb 2008 18:10:22 -0000 On Thu, 7 Feb 2008 19:19:48 +0530 "navneet Upadhyay" wrote: > Hi, > After putting my script to /etc/rc.d , it gets executed at > startup and the parameter passed to the script is *faststart .* > *I want the same script to be executed when system shuts down , how > can i do that.* Don't put it in /etc/rc.d/, give it a .sh extension and put it in /usr/local/etc/rc.d/. It will then get stop/start arguments.