From owner-freebsd-questions@FreeBSD.ORG Mon Apr 28 12:32:41 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6ADB637B401 for ; Mon, 28 Apr 2003 12:32:41 -0700 (PDT) Received: from babyruth.hotpop.com (babyruth.hotpop.com [204.57.55.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65F3F43FE1 for ; Mon, 28 Apr 2003 12:32:40 -0700 (PDT) (envelope-from kitbsdlists@HotPOP.com) Received: from hotpop.com (kubrick.hotpop.com [204.57.55.16]) by babyruth.hotpop.com (Postfix) with SMTP id D6ACA30F539 for ; Mon, 28 Apr 2003 19:29:02 +0000 (UTC) Received: from fortytwo. (ip68-109-49-234.lu.dl.cox.net [68.109.49.234]) by smtp-1.hotpop.com (Postfix) with SMTP id B31501A009E; Mon, 28 Apr 2003 19:28:50 +0000 (UTC) Date: Tue, 29 Apr 2003 15:28:32 -0500 From: Vulpes Velox To: freebsd-questions@freebsd.org Message-Id: <20030429152832.2307b812.kitbsdlists@HotPOP.com> In-Reply-To: <4F19D8A3D7B26247A4481AE28348A84840886E@gboexm2.ad.analog.com> References: <4F19D8A3D7B26247A4481AE28348A84840886E@gboexm2.ad.analog.com> X-Mailer: Sylpheed version 0.8.2claws (GTK+ 1.2.10; i386-portbld-freebsd4.7) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- cc: Ryan.Turner@analog.com Subject: Re: Startup script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 19:32:41 -0000 On Mon, 28 Apr 2003 10:36:07 -0400 "Turner, Ryan" wrote: > I want to run a script on startup that will perform some work and then > shut the machine down. My script looks something like this: > > #!/bin/sh > > # do some stuff > > shutdown -h now > > > > Where should I place this script? I want it to run after entering > multi-user mode and I would like it to run as root. Placing it in /usr/local/etc/rc.d/ should work.