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

Notices


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

Rep: Reputation: Disabled
stopping autorun program


Hello:
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
damian
 
Old 07-15-2012, 02:54 PM   #2
VDP76
Member
 
Registered: Apr 2010
Location: Bayreuth, Germany
Distribution: CrunchBang Linux (#!)
Posts: 111

Rep: Reputation: 19
hi,
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
Code:
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!
 
  


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



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


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

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