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


Groups > comp.lang.python > #62656 > unrolled thread

Re: Deamonify my python script on Android

Started byBen Finney <ben+python@benfinney.id.au>
First post2013-12-24 08:56 +1100
Last post2013-12-24 08:56 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#62656 — Re: Deamonify my python script on Android

FromBen Finney <ben+python@benfinney.id.au>
Date2013-12-24 08:56 +1100
SubjectRe: Deamonify my python script on Android
Message-ID<mailman.4576.1387835783.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web