I have a daemon written in C++ running on the background on android.
I want that daemon to restart upon crash or unexpected event without adding independent crash protection. What is the best way to do this ? I hope to edit init.rc.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should specify in your init.rc file:
I think that in your case you should not specify options. However, here you can find the list of options. After editing init.rc run
makecommand.