Run non-interactive script in single user mode

Posted by Jed Daniels on Server Fault See other posts from Server Fault or by Jed Daniels
Published on 2011-01-18T02:00:03Z Indexed on 2011/01/18 2:55 UTC
Read the original article Hit count: 262

Filed under:
|

Is it possible to run a "startup" script when booting into single user mode? I need to be able to boot into single user mode, run my script, then reboot into multiuser mode without any human interaction.

I've done a bunch of research and can't find anything that is clear on the topic, although of course I could replace something else that does run with a wrapper that also launches my script, but I'd prefer to do it in some official way. Ideally, the solution will work in FreeBSD 6 and up, but I'm willing to accept only new versions if it just doesn't exist in the older revs.

© Server Fault or respective owner

Related posts about freebsd

Related posts about rc