Kevin Peterson <qh.res...@gmail.com> writes: > I want to daemonify my python script on Android device. That is, it > should be automatically invoked on boot up.
Those aren't the same thing. To daemonise a program is independent of whether the program starts automatically; it can start automatically without detaching (e.g. the process that requests a login) it can detach on request without starting automatically (e.g. any daemon started by a user), etc. If you want the program to start automatically on boot up, that's not a python question; you want to find out about the Android boot process and what facilities it has for starting a program on boot. But that's independent of Python and independent of daemonising the program. If you want to have a program become a daemon (i.e. a background process) <URL:https://en.wikipedia.org/wiki/Daemon_%28computing%29> the ‘python-daemon’ library is designed for this <URL:https://pypi.python.org/pypi/python-daemon/>. But that's nothing to do with automatic start-up, nor Android; you're on your own for those. Good hunting! -- \ “My interest is in the future, as I am going to spend the rest | `\ of my life there.” —Charles F. Kettering | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list