From owner-freebsd-questions@FreeBSD.ORG Mon Apr 28 08:06:02 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 797EE37B401 for ; Mon, 28 Apr 2003 08:06:02 -0700 (PDT) Received: from Gina.esfm.ipn.mx (esfm.ipn.mx [148.204.102.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6BD343F75 for ; Mon, 28 Apr 2003 08:06:01 -0700 (PDT) (envelope-from mrspock@esfm.ipn.mx) Received: from Gina.esfm.ipn.mx (localhost [127.0.0.1]) by Gina.esfm.ipn.mx (8.12.6p2/8.12.6) with ESMTP id h3SF5WNY052329; Mon, 28 Apr 2003 10:05:32 -0500 (CDT) (envelope-from mrspock@esfm.ipn.mx) Received: from localhost (mrspock@localhost)h3SF5V6r052326; Mon, 28 Apr 2003 10:05:31 -0500 (CDT) X-Authentication-Warning: Gina.esfm.ipn.mx: mrspock owned process doing -bs Date: Mon, 28 Apr 2003 10:05:31 -0500 (CDT) From: Eduardo Viruena Silva To: "Turner, Ryan" In-Reply-To: <4F19D8A3D7B26247A4481AE28348A84840886E@gboexm2.ad.analog.com> Message-ID: <20030428100502.U51776@Gina.esfm.ipn.mx> References: <4F19D8A3D7B26247A4481AE28348A84840886E@gboexm2.ad.analog.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: questions@freebsd.org 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 15:06:02 -0000 On Mon, 28 Apr 2003, 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 > perhaps in /etc/rc.local > > > 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. > > > > > Ryan Turner > ryturner@vt.edu > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > - ______ _ * / /###\ / \ __ /\ /\ * / ./#### \ * \__|_/ | | / \/ \ | b#####| * _ | __ | | __ = .. \____ \ \_\#####/ / \| / \ | | /\_\/ = \_| * \___\###/ * \_/\_/\__/\__\/_/\__/ = \______/ _ | |