On Mon, 3 Apr 2000, John Paul Q. Tomas wrote:

> Can someone tell me where i can locate a file
> that is equivalent to autoexec.bat on DOS...
> Im trying to take off a script/command the initializes
> upon boot up of my linux box...

Most linux distributions come with a System-V initialization method
in which the root process /sbin/init is controlled by the master file
/etc/inittab.  On Debian systems, /etc/inittab uses the init scripts
in /etc/init.d (or /etc/rc.d/init.d in RedHat).  The scripts there
are actually run by the softlinks in /etc/rcN.d (or /etc/rc.d/rcN.d 
in RedHat), which either kill or start the desired activity, depending
on the runlevel N.

The clean way to add your own initializations is to write your script
"myinitscript" with three possible arguments start, stop, and restart.
Then install the script as /etc/init.d/myinitscript.  Finally, you need
to install the appropriate kill or start softlinks in the different
runlevel directories /etc/rcN.d. depending on whether the want 
myinitscript to be started or killed at that runlevel.

The concept of SystemV runlevels is very well described in the bible of
system administrators: Nemeth et al, "Unix System Administrators Manual",
2nd edition.

//PManalastas


-------------------------------------------------
This mail sent through IMP: linux.ateneo.net

-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Reply via email to