Script at boot?

I need to run a few things at boot. I'm moving from debian to FreeBSD and in debian I would just put them in the script /etc/rc.local.

I searched the forum and google and I found the rc.d scripts but that looked overly complex for such a simple task.

So I wonder if there is a simple script that would be executed at startup where I can put my startup stuff in?

Thanks in advance,
Pete
 
The /etc/rc.d/local script runs the /etc/rc.local file and /etc/rc.shutdown.local file on shutdown, so You can use your habbits the same here on FreeBSD land.

Just remember that both /etc/rc.local and /etc/rc.shutdown.local files need to have executable bit to work.
 
That said it's better to use the rc scripts. But it really depends on what you need to do during boot. The rc scripts have all sorts of neat features like dependencies and start/stop functionality built-in.
 
SirDice said:
That said it's better to use the rc scripts. But it really depends on what you need to do during boot. The rc scripts have all sorts of neat features like dependencies and start/stop functionality built-in.

Thanks, I'll keep that in mind. For now I don't need any of the nifty features in the rc scripts and /etc/rc.local worked like a charm.
 
/etc/rc.local doesn't need to be executable. Never has been in my case, anywhere.
 
Back
Top