LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-08-2008, 01:56 PM   #1
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,688
Blog Entries: 23

Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
Question 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
 
Old 06-08-2008, 02:25 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,683
Blog Entries: 14

Rep: Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022
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.
 
Old 06-09-2008, 05:24 AM   #3
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,688
Blog Entries: 23

Original Poster
Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
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
 
Old 06-09-2008, 05:25 AM   #4
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,688
Blog Entries: 23

Original Poster
Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
BTW, the FAQ lives at

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

In case you'd need more info...

Thor
 
Old 06-09-2008, 01:22 PM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,683
Blog Entries: 14

Rep: Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Startup - AutoExec.bat equivalent? perry Linux - Software 6 05-04-2004 12:13 AM
autoexec on Linux? Windreaper Linux - Newbie 2 04-19-2004 06:45 AM
Autoexec.bat in Linux? sikandar Linux - Software 10 08-31-2003 01:30 PM
autoexec.bat analogous for linux?.... amod Linux - Newbie 2 06-18-2003 06:49 AM
The Linux version of autoexec.bat ??? Canaris Linux - Newbie 9 05-27-2003 08:35 AM


All times are GMT -5. The time now is 02:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration