I am running CentOS and want to execute a command when the system is booted. Reading other posts on ServerFault the recommend file to use is rc.local
. However, rc.local
exists in both /etc/
and /etc/rc.d/
. Which file should I use, and what is the difference between the two?
Thanks.
Best Answer
I believe
/etc/rc.local
is a symlink to/etc/rc.d/rc.local
.