LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Autoexec @ Linux? (https://www.linuxquestions.org/questions/linux-newbie-8/autoexec-%40-linux-647828/)

ButterflyMelissa 06-08-2008 12:56 PM

Autoexec @ Linux?
 
Hi!

Silly question...but just where does Linux store the list of TODO's - as I boor the system up, there's a whole list of things it loads, where does it store that list?

I know that windows had this autoexec.bat where the stuff-to-load-or-do was listed...

Tnxè

Thor

MensaWater 06-08-2008 01:25 PM

On boot the process init runs.

Items in /etc/inittab are executed.

However, the bulk of the start up is in the "init scripts". Unlike autoexec.bat there are separate scripts for different purposes. You'll have one for most every subsystem or application.

The base init scripts are in /etc/init.d.

However, the start up and stop of each init script is done by putting links to the init scripts in the run level directories such as /dev/rc1.d (single user, /dev/rc2.d - /dev/rc5.d (multi-user run levels) and specialized run levels. The naming of the linked files will be S##.... for start and K##... for stop.

Setting these up takes a bit more work than autoexec.bat. You can find all sorts of information by doing Google search for "init script" or "what happens when linux boots".

For Fedora/RedHat/CentOS there is a command called chkconfig that can be used to show or set which run levels specific init scripts are turned "on" (started" or "off" (stopped). Typing "man chkconfig" will give you information about the usage of that command.

ButterflyMelissa 06-09-2008 04:24 AM

Hmm, I suspected it to be a wee bit more complex that the old autoexec. The whole thing is arond Dazuko. I cannot "insmod" it, because annother security module does'nt like it, I quote from the FAQ @ Dazuko's themselves

-----------------------------------------------------

In /var/log/messages it says "kernel: There is already a security framework initialized, register_security failed. kernel: dazuko: failed to register". What is wrong?

This occurs because another security module is already loaded and is not allowing Dazuko to be loaded. In order to allow multiple security modules, Linux 2.6 supports stacking. Unfortunately some modules do not implement this, which makes it impossible to load additional security modules. Dazuko does support stacking correctly. If you make sure that Dazuko is the first loaded security module, than other modules can also be loaded.

Typically the problem is the "capability" module. You can verify that this is the problem by unloading the "capability" module, loading Dazuko, and then reloading the "capability" module:

# rmmod capability
# insmod ./dazuko.ko
# modprobe capability

If this was indeed the problem, you can usually configure your system to load modules in a specific order. This varies between Linux distributions.

--------- End Quote -----------------------------

Now, placint Dazuko a bit "earlier" in the loading process could then allow me to insert the module without bothering the rest. Unless I have to insert the three lines (testlines) into a Script - somewhere...

That is the whole problem, here...

Tnk 4 YUR time!

Thor

ButterflyMelissa 06-09-2008 04:25 AM

BTW, the FAQ lives at

http://dazuko.dnsalias.org/wiki/inde...ers.22_mean.3F

In case you'd need more info...

Thor

MensaWater 06-09-2008 12:22 PM

OK modules are a completely different animal not part of the init stuff.

Modules are loaded by the kernel.

They're essentially telling you to update /etc/modprobe.conf (2.6 kernel) or /etc/modules.conf (2.4 kernels). You need to follow the instructions they provided carefully as this affects how your system boots.


All times are GMT -5. The time now is 11:01 PM.