initialization file calling mechanism

initialization file calling mechanism

Post by dmorg.. » Sat, 05 Sep 1998 04:00:00



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

 /root/.bashrc
 /etc/profile

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
user?

 
 
 

1. Call Back mechanism in Linux ?

Hi,
  Is there a way for 2 un-related processes to be able to share a
function across in Linux.
  I am looking for a way to implement a callback in Linux.
process 1                              process 2
  func( )                              funcx( )
  {                                    {
     func2( );                              (void)(*func2)(void)
  }                                     }
   Can func2 which belongs to process 1 be used in process 2.
TIA
Sateesh K

2. RedHat 2.1 PPP setup

3. A question about Kernel system call mechanism

4. How do I log root's keystrokes or commands

5. kernel driver initialization calls during boot?

6. Enlightenment setup

7. eth0 and eth1 "Delaying eth0 Initialization" and "Delaying eth1 Initialization" errors

8. StarOffice 50 key?

9. Need utility to trap network function calls (socket calls) and save to log file

10. Looking for secured file transfer mechanism

11. Request code for log-file mechanism

12. Is there a known bug in report file mechanism

13. File locking as a mutual exclusion mechanism