ok so i updated rc.local inside /etc

added 

nohup /pathtomyprogram/program &

exit 0

works well. 

the & Plays an important role and also the /path has to be the custom path 
and not inside /etc i was trying that before. now i just moved it outside. 


THanks Guys!.

CHeers!

On Monday, December 15, 2014 1:22:28 AM UTC+5:30, Kevin D'Souza wrote:
>
> nohup ./myprocess
>
> i put this in a .sh and ran it via init.d 
>
> it doenst spawn the service. >.<
>
> On Monday, December 15, 2014 1:00:01 AM UTC+5:30, [email protected] wrote:
>>
>> Hi, 
>>
>> then the process is missing a controling terminal. 
>> Try to start it with nohup from the script to verify that. 
>>
>>
>>
>>
>> Kevin D'Souza <[email protected]> [14-12-14 20:28]: 
>> > nono 
>> > the process just does UART work up and down (transferring data between 
>> > UARTS). 
>> > 
>> > If i keep the process open in a terminal it runs indefinitley. 
>> > if i run it under the init.d after 5mins it goes off. 
>> > 
>> > no blocking calls, no file io. 
>> > 
>> > is there a way to spawn the process via systemd and keep WATCHDOG=1 
>> > somehow... 
>> > 
>> > On Monday, December 15, 2014 12:12:20 AM UTC+5:30, [email protected] 
>> wrote: 
>> > > 
>> > > Just a shot in the dark: 
>> > > 
>> > > Is it possible, that the process in question is writing a hidden 
>> > > temporary on a tmpfs-filesystem, which returns "no space left 
>> > > on device" after 5 mins of writing to it and the application 
>> > > does not handle that error very wel and dies. 
>> > > Due to the missing "close" the file vanishes and 
>> > > one can start the cycle again? 
>> > > 
>> > > ...?... 
>> > > 
>> > > HTH! 
>> > > Meino 
>> > > 
>> > > 
>> > > 
>> > > 
>> > > evilwulfie <[email protected] <javascript:>> [14-12-14 19:36]: 
>> > > > Restart it upon death with e cron job ? 
>> > > > 
>> > > > what program and why is it exiting ? 
>> > > > 
>> > > > 
>> > > > On 12/14/2014 9:38 AM, Kevin D'Souza wrote: 
>> > > > > Hello Guys 
>> > > > > 
>> > > > > I am using a BEaglebone BLack with Debian. 
>> > > > > 
>> > > > > I added a service to startup using update-rc.d myprogram 
>> defaults. 
>> > > > > 
>> > > > > the program starts at startup but it is killed automatically 
>> after 5 
>> > > mins. 
>> > > > > 
>> > > > > How can i keep it alive forever? I dont want it to die. 
>> > > > > 
>> > > > > Regards, 
>> > > > > 
>> > > > > Kevin 
>> > > > > -- 
>> > > > > For more options, visit http://beagleboard.org/discuss 
>> > > > > --- 
>> > > > > You received this message because you are subscribed to the 
>> Google 
>> > > > > Groups "BeagleBoard" group. 
>> > > > > To unsubscribe from this group and stop receiving emails from it, 
>> send 
>> > > > > an email to [email protected] <javascript:> 
>> > > > > <mailto:[email protected] <javascript:>>. 
>> > > > > For more options, visit https://groups.google.com/d/optout. 
>> > > > 
>> > > > -- 
>> > > > For more options, visit http://beagleboard.org/discuss 
>> > > > --- 
>> > > > You received this message because you are subscribed to the Google 
>> > > Groups "BeagleBoard" group. 
>> > > > To unsubscribe from this group and stop receiving emails from it, 
>> send 
>> > > an email to [email protected] <javascript:>. 
>> > > > For more options, visit https://groups.google.com/d/optout. 
>> > > 
>> > 
>> > -- 
>> > For more options, visit http://beagleboard.org/discuss 
>> > --- 
>> > You received this message because you are subscribed to the Google 
>> Groups "BeagleBoard" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an email to [email protected]. 
>> > For more options, visit https://groups.google.com/d/optout. 
>>
>>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to