[android-porting] Re: Need to start a reliable, persistent server

2012-03-04 Thread Glenn Kasten
Yes - you could make it a service (in the init sense of the term), and put it in an "on restart" clause in the servicemanager section of init.rc. For an example see mediaserver. On Mar 2, 5:07 pm, Tim Mensch wrote: > I'm working with a client who needs to have a persistent server run on > a devic

[android-porting] Re: Need to start a reliable, persistent server

2012-03-04 Thread Chris Stratton
You probably also want to give it special oom killer values to protect it. On Friday, March 2, 2012 8:07:39 PM UTC-5, Tim wrote: > > I'm working with a client who needs to have a persistent server run on > a device running Android. The device will be wall-powered, so battery > life is not an i

Re: [android-porting] Re: Need to start a reliable, persistent server

2012-03-04 Thread Zoltan Kuscsik
Hi, mission critical services should be written in native code and started by the init.rc or system server. Z On Sun, Mar 4, 2012 at 5:37 PM, Glenn Kasten wrote: > Yes - you could make it a service (in the init sense of the term), and > put it in an "on restart" clause in the servicemanager s

Re: [android-porting] Re: Need to start a reliable, persistent server

2012-03-07 Thread Tim
Yes, it will be written in native code, and I was planning on using init.rc. I'm not sure what you mean by the "system server," but init.rc should work fine, thanks. Tim On Sunday, March 4, 2012 2:01:28 PM UTC-7, zoli2k wrote: > > Hi, > > mission critical services should be written in native co