FreeBSD 5 rc.d scripts and /usr/local/etc/rc.d

Tim Aslat tim at
Wed May 12 16:06:42 PDT 2004

In the immortal words of "Chad Leigh -- Shire.Net LLC"
<chad at>...
> "The best way to handle rc.local, however, is to separate it
>       out into rc.d/ style scripts and place them under 
> /usr/local/etc/rc.d/."

That's right

> So I created an rc.d style script for my own service and stuck it in 
> /usr/local/etc/rc.d/.  It does not have a .sh on the end as it should 
> run in a subshell as detailed in the rc man page.  I also added

There's your problem, all scripts in rc.d must have a .sh extension or
they will be ignored (unless included from another script/program)

rename to and it will work



Tim Aslat <tim at>
Spyderweb Consulting
Phone: +61 0401088479

More information about the freebsd-questions mailing list