If you would like to learn the details of why
<filename>rc.d
</filename> scripts must be written in the
<citerefentry><refentrytitle>sh
</refentrytitle><manvolnum>1
</manvolnum></citerefentry> language, see how
<filename>/etc/rc
</filename> invokes them by means of
<function>run_rc_script
</function>, then study the implementation of
<function>run_rc_script
</function> in
<filename>/etc/rc.subr
</filename>.