Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-18-2009, 08:27 AM   #1
Registered: Apr 2009
Posts: 96

Rep: Reputation: 23
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.
Old 08-19-2009, 12:57 AM   #2
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

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


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
cannot stat ... "modules.order" ... No such file or directory shogun1234 Linux - Kernel 1 11-27-2008 02:12 PM
Modules, daemons - think modular tovis Debian 9 01-26-2008 11:15 AM
user space daemons, kernel patches, modules ajitkth Linux - General 0 02-21-2005 08:01 AM
stat of /dev files loads modules! karlg Linux - Security 3 12-03-2004 03:04 PM
modules.conf - Cannot get modules to load automatically gundelgauk Linux - General 1 12-27-2003 11:27 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:28 PM.

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