Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-15-2012, 02:22 PM   #1
LQ Newbie
Registered: Jul 2012
Location: puerto rico
Distribution: several, depending on the embedded system
Posts: 4

Rep: Reputation: Disabled
stopping autorun program

I am using a SBC with an ARM processor on it. I am working on an application and need that a c program start running automatically and indefinetely once the board is powerd up. However i was able to create the program to run automatically by linking it to the /etc/init.d in my processor. I do not want it to make it run indefinetely because I am unable to kill the program once it start running using Ctrl+c OR the "kill" command. Is there a way to accomplish that?, I mean to make a program to run automatically and indefinetely on start up but kill it is necesary?
than ks in advance
Old 07-15-2012, 02:54 PM   #2
Registered: Apr 2010
Location: Bayreuth, Germany
Distribution: CrunchBang Linux (#!)
Posts: 111

Rep: Reputation: 19
how were you trying to kill the process, as a normal user!? I think that a process started from /etc/init.d would need root privileges to be terminated. Anyway, the usual command to stop such processes is
sudo /etc/init.d/PROGRAM stop
but I do not know if it applies to "custom" program or just to "default" services.

Try it out, good luck!


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
autorun program in c++ vbx_wx Programming 4 03-11-2010 04:12 AM
How to autorun a CD or Program golfadict Linux - Newbie 5 11-06-2009 03:22 PM
AutoRun Program in XWindows zael Linux - Newbie 3 02-09-2004 07:49 AM
autorun application program on hotplug kevinatkins Linux - Software 0 02-08-2004 08:44 AM
autorun a program in tty3 LynX Linux - Newbie 2 11-09-2002 05:07 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:58 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