LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   stopping autorun program (https://www.linuxquestions.org/questions/linux-newbie-8/stopping-autorun-program-4175416850/)

dmiralles2009 07-15-2012 01:22 PM

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

VDP76 07-15-2012 01:54 PM

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! ;)


All times are GMT -5. The time now is 10:43 PM.