What's the recommended strategy for getting things set up as I want
when Linux (RedHat5.1) boots, as might be done with AUTOEXEC in DOS?
Is it centrally documented someplace?
Files with "profile," "rc," or "init" in the filename play a role.
Trial and error shows that
get executed when I log in as root.
There may be other such files, for example:
in /root .bash_profile
in /etc bashrc
in /etc/rc.d rc.sysinit rc.local
Additionally, /etc/rc.d has an init.d subdirectory full of scripts for
various aspects of the system, plus seven "rc" subdirectories rc0.d,
rc1.d,..., rc6.d with files that are "links" to those in /etc/init.
(What do "rc" and "d" stand for? which get executed and which don't?)
For now I put the command I currently need (setserial) in
/etc/rc.d/rc.local and it's working. That file contains a comment,
"This script will be executed after all the other init scripts. You
can put your own initialization stuff in here if you don't want to do
the full Sys V style init stuff [whatever that is]."
How best to take care of desired initialization commands upon bootup
both globally for the system and individually for each particular