Review your favorite Linux distribution.
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 11-29-2005, 02:44 AM   #1
LQ Newbie
Registered: Nov 2005
Posts: 4

Rep: Reputation: 0
Running a process during boot

Hi all,

I'm using a 2.4.26 Linux kernel and a rad-hat red-hat based custom distribution as an operating system for a controller.

I developed a software to run over the controller and to perform some activities with the controller resources.

How can I configure the Linux to run my software during the boot process?
I other words: I want this software to run right after (or during) the boot process without the need of any manual interference.

Old 11-29-2005, 03:08 AM   #2
Registered: Oct 2004
Location: Oldenburg, Germany
Distribution: FC4
Posts: 42

Rep: Reputation: 15
hi anegbi,
eigther you can write a little startup-script, place it in /etc/init.d and link it to the run-level, where it should be strarted (/etc/rc3.d/ or /etc/rc5.d/) or simply add the start-command in /etc/rc.d/rc.local.

greetings, grim
Old 11-29-2005, 02:53 PM   #3
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,342
Blog Entries: 4

Rep: Reputation: 3332Reputation: 3332Reputation: 3332Reputation: 3332Reputation: 3332Reputation: 3332Reputation: 3332Reputation: 3332Reputation: 3332Reputation: 3332Reputation: 3332
Each time Linux starts up, it runs one process: init. That process refers to /etc/inittab to tell it what to do for the current "runlevel," normally "5." (See man init, et al.)

And that usually consists of an instruction to run all of the "Snn.." files found in /etc/rc.d/rcn.d, where "n"=the current runlevel. (On boot, it runs "sysinit" first.) It runs the files in ascending order: hence the two-digit numbers in the names, used to enforce the order. You'll notice that each one of these files is a symlink, or alias, to files in /etc/init.d. (Whew!)

The "K..." files are used to close things down when switching runlevels: "K" is for "Kill." (So saith the author Sue Grafton.)

So, that's the mechanism that you will use.
Old 11-30-2005, 03:08 AM   #4
LQ Newbie
Registered: Nov 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the info folks, BUT - I need my process to run without interfere the boot process - my process, as an embedded process, is endless!
Currently, if I'm running it before the boot process ends if prevents the boot from ending.


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
Getting PID of running process in C/C++ laikos Programming 16 10-30-2015 06:16 PM
Linux boot up process Vs. Windows boot up process darkskull Linux - Software 7 12-30-2006 04:21 PM
Running process sonu1082 Linux - Software 2 11-25-2004 05:32 AM
Process not running LinuxRam Linux - Newbie 4 09-09-2004 12:45 AM
starting a background process running tcpdump on boot butthead Linux - Networking 1 10-15-2003 06:34 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:14 AM.

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