In
<filename>/etc/rc.subr
</filename>, a number of
<citerefentry><refentrytitle>sh
</refentrytitle><manvolnum>1
</manvolnum></citerefentry> functions are defined for an
<filename>rc.d
</filename> script to use. The functions are documented in
<citerefentry><refentrytitle>rc.subr
</refentrytitle><manvolnum>8
</manvolnum></citerefentry>. While it is theoretically possible to write an
<filename>rc.d
</filename> script without ever using
<citerefentry><refentrytitle>rc.subr
</refentrytitle><manvolnum>8
</manvolnum></citerefentry>, its functions prove extremely handy and make the job an order of magnitude easier. So it is no surprise that everybody resorts to
<citerefentry><refentrytitle>rc.subr
</refentrytitle><manvolnum>8
</manvolnum></citerefentry> in
<filename>rc.d
</filename> scripts. We are not going to be an exception.