Notes on the /etc/rc.local File
A resource configuration script mentioned earlier in this chapter received almost no mention, except that it was obsolete: /etc/rc.local. This file will be familiar to administrators who used earlier versions of FreeBSD or certain distributions of Linux. Its purpose is much the same as the /usr/local/etc/rc.d directories—to provide you with a mechanism to extend the system's startup behavior.
The rc.d method described earlier is the preferred method of accomplishing this. It is more structured: It keeps each startup task in its own script with a common interface—corraled into /usr/local and out of /etc. However, if you must use it, /etc/rc.local still works, although it doesn't exist in the default installation. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access