Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #62656

Re: Deamonify my python script on Android

From Ben Finney <ben+python@benfinney.id.au>
Subject Re: Deamonify my python script on Android
Date 2013-12-24 08:56 +1100
References <abcd1234abc123ab12a0000025744000010000001052@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4576.1387835783.18130.python-list@python.org> (permalink)

Show all headers | View raw


Kevin Peterson <qh.resu01@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Deamonify my python script on Android Ben Finney <ben+python@benfinney.id.au> - 2013-12-24 08:56 +1100

csiph-web