linux "autoexec.bat" equivalent?

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
How do I change what gets run at boot? (Like starting vmware, gpm, sendmail, usb module, a whole lot of stuff) I want to remove some modules that I compiled into the kernel (it gives an error when it tries to find the modules)

thanks
 

Soybomb

Diamond Member
Jun 30, 2000
9,506
2
81
Depends on the distro.....

A redhat sytle start up (SysV I think its called) will have /etc/rc.d/ and then all the different items at startup would be in /etc/rc.d/rc3.d if you start at runlevel three. there are also some things in /etc/rc.d/rc.local
 

BOFH

Senior member
Dec 31, 1999
456
0
0
for redhat systems ntsysv is a console gui to do it. it calls chkconfig as I recall. on debian systems update-rc.d
 

Workin'

Diamond Member
Jan 10, 2000
5,309
0
0
etc/rc.d/rc.local is probably the closest thing to autoexec.bat for running programs.

But for loading modules etc/rc.d/rc3.d would be the likely place.

I guess that's what Soybomb said....
 

ProviaFan

Lifer
Mar 17, 2001
14,993
1
0
IIRC, runlevel 6 causes the system to reboot (try typing "init 6"; it will work the same as "reboot" or as pressing CTRL+ALT+DEL). If, when your system boots, it comes to a graphical login, you want to edit level 5. Otherwise, edit level 3. To make the job easier, try using "linuxconf" to "control service activity". It is really much easier.
HTH,
Josh
 

bubba

Golden Member
Oct 10, 1999
1,589
0
0


Or you could use the good ol' console based 'ntsysv'. Old RedHat util, I still like it. You can modify the runlevel you are currently in.