-   Linux - Software (
-   -   how to stat-up modules/daemons automatically (

DEF. 08-18-2009 08:27 AM

how to stat-up modules/daemons automatically
I have an embedded linux system and I want to a) autoload some modules and b) auto start some daemons.

folder structure to be used is as follows:


It was my intention to put a script to sequentially load the modules in the /etc/init.d folder and then use a symbolic link from the /etc/rc.d/rc3.d folder to start the script. Note my systems starts on rc3.

Anyhow this doesn't work and the modules are not loaded. The script to load the modules works fine if executed at the command-line. Also I have chmod'ed the script to be executable by all.

So, why doesn't this work? Should I use the other init.d folder? Why is there two init.d folders? What is the modprobe.d folder for? What is the rcsysinit.d folder for?

How would I start a daemon or and executable, I assume the same method as above (if only it worked)?

Thanks in advance.

catkin 08-19-2009 12:57 AM

Have you tried adding the module names to /etc/modules? That is the regular way to load modules.

Please run this command (repacing the <> parts with appropriate values) and post the output

/bin/ls -l /etc/rc3.d/<my smlink> /etc/init.d/<my script>
When you test the script are you running it directly or via the symlink?

There are probably two init.d directories for compatibility. Is one a symlink to the other?

I do not know about the modprobe.d and rcsysinit.d directories.

init scripts, using the mechanism you described, are the usual way to start things at boot time, both daemons and "one shot" processes.

All times are GMT -5. The time now is 09:11 AM.