Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 2003 15:28:32 -0500
From:      Vulpes Velox <kitbsdlists@HotPOP.com>
To:        freebsd-questions@freebsd.org
Cc:        Ryan.Turner@analog.com
Subject:   Re: Startup script
Message-ID:  <20030429152832.2307b812.kitbsdlists@HotPOP.com>
In-Reply-To: <4F19D8A3D7B26247A4481AE28348A84840886E@gboexm2.ad.analog.com>
References:  <4F19D8A3D7B26247A4481AE28348A84840886E@gboexm2.ad.analog.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 28 Apr 2003 10:36:07 -0400
"Turner, Ryan" <Ryan.Turner@analog.com> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030429152832.2307b812.kitbsdlists>