LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 11-29-2005, 02:44 AM   #1
anegbi
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.

Thanks!
 
Old 11-29-2005, 03:08 AM   #2
grimse
Member
 
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
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,048

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


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
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
Getting PID of running process in C/C++ laikos Programming 9 03-15-2004 03:33 AM
starting a background process running tcpdump on boot butthead Linux - Networking 1 10-15-2003 06:34 PM


All times are GMT -5. The time now is 05:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration