Startup script

Peter Elsner peter at servplex.com
Mon Apr 28 07:53:30 PDT 2003


/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 at vt.edu
>
>
>
>
>_______________________________________________
>freebsd-questions at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

----------------------------------------------------------------------------------------------------------
Peter Elsner <peter at servplex.com>
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.




More information about the freebsd-questions mailing list