I'm searching the Internet for a serveral days with no result. So, I 
decided to ask the community to shed some light on this.

 

I have an application written in C++ that I compiled for Android OS. The 
app can also be run as daemon (by specifying --daemon option).

When it's run as the regular executable it works fine, but when I try it to 
start as daemon it disappears after the fork() is performed I see it in 
logcat.

It seems the OS just kills the process.

 

The questions are:

1. Whether it is possible to adapt Unix/Linux daemon code to work on 
Android? If yes how?

2. How to start it on boot? I suppose by init.rc, but how to edit it 
persistently and what should I add to this file to make service start (I'm 
not sophisticated linux developer)?

3. If no. Is there any android specific approach to solve the task?

 

Please feel free to post links you think can be useful.

Thanx in advance.

-- 
-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel
--- 
You received this message because you are subscribed to the Google Groups 
"Android Linux Kernel Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-kernel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to