Startup script

Vulpes Velox kitbsdlists at HotPOP.com
Mon Apr 28 12:32:41 PDT 2003


On Mon, 28 Apr 2003 10:36:07 -0400
"Turner, Ryan" <Ryan.Turner at 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.



More information about the freebsd-questions mailing list