From owner-freebsd-questions@FreeBSD.ORG Mon Apr 28 07:53:30 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 3B36C37B401 for ; Mon, 28 Apr 2003 07:53:30 -0700 (PDT) Received: from spxgate.servplex.com (ip66-105-58-82.z58-105-66.customer.algx.net [66.105.58.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4654B43F75 for ; Mon, 28 Apr 2003 07:53:28 -0700 (PDT) (envelope-from peter@servplex.com) Received: from peter.servplex.com ([192.168.0.10]) by spxgate.servplex.com (8.12.8/8.12.6) with ESMTP id h3SF68xj050802; Mon, 28 Apr 2003 10:06:08 -0500 (CDT) (envelope-from peter@servplex.com) Message-Id: <5.2.0.9.2.20030428095331.01882008@mail.servplex.com> X-Sender: peter@mail.servplex.com X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Mon, 28 Apr 2003 09:53:44 -0500 To: "Turner, Ryan" From: Peter Elsner In-Reply-To: <4F19D8A3D7B26247A4481AE28348A84840886E@gboexm2.ad.analog.c om> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: freebsd-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 14:53:30 -0000 /usr/local/etc/rc.d At 10:36 AM 4/28/2003 -0400, you 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. > > > > >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" ---------------------------------------------------------------------------------------------------------- Peter Elsner Vice President Of Customer Service (And System Administrator) 1835 S. Carrier Parkway Grand Prairie, Texas 75051 (972) 263-2080 - Voice (972) 263-2082 - Fax (972) 489-4838 - Cell Phone (425) 988-8061 - eFax I worry about my child and the Internet all the time, even though she's too young to have logged on yet. Here's what I worry about. I worry that 10 or 15 years from now, she will come to me and say "Daddy, where were you when they took freedom of the press away from the Internet?" -- Mike Godwin Unix IS user friendly... It's just selective about who its friends are. System Administration - It's a dirty job, but somebody said I had to do it. If you receive something that says 'Send this to everyone you know, pretend you don't know me. Standard $500/message proofreading fee applies for UCE.