LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Win-Lin equivilants (regkeys, autoexec.bat, config,sys) (https://www.linuxquestions.org/questions/linux-from-scratch-13/win-lin-equivilants-regkeys-autoexec-bat-config-sys-290272/)

carl0ski 02-14-2005 06:46 PM

Win-Lin equivilants (regkeys, autoexec.bat, config,sys)
 
Hey
I thought here was as gooder place as any.

Where is good place to add programs to run at startup?
i added program commands /etc/rc.d/rc.local
but the vty terminals stop working untill i kill the program i added to rc.local.

is there somewhere else i can call FAHcore?


What are the linux equilivants of
run, runonce in the windows kernel?
Autoexec.bat in the windows/dos environment?

bbk 02-15-2005 08:19 AM

If you want to start daemons or programs to start in the background, check /etc/init.d directory and /etc/rcX.d folders (and run the runlevel program to check your current runlevel). And also check /etc/inittab as init is controlling everything in boot time...
by the way, run and runonce has nothing to do with the Windows kernel.

There are startup-time programs, check them in the mentioned /etc/rcX.d dirs. (They are runlevel based init and stop commands, linked to the scripts residing in /etc/init.d).

There are login-time programs, their control is determined by your shell, e.g. if you are using bash then check .bash_profile (for login shell) and .bashrc (for interactive shell).

So, autoexec.bat can be integrated as the part of the shell scripts mentioned above...

to begin get started with some reading:
man init
man bash

Linux/Unix shouldn't be handled as a click-and-play OS, there are endless possibilities just take a very little time to __understand__ it in the basic, console level.

Hope I could help.


All times are GMT -5. The time now is 03:32 AM.