Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #77798 > unrolled thread
| Started by | Ervin Hegedüs <airween@gmail.com> |
|---|---|
| First post | 2014-09-12 08:06 +0200 |
| Last post | 2014-09-12 08:06 +0200 |
| 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.
Re: Example of python service running under systemd? Ervin Hegedüs <airween@gmail.com> - 2014-09-12 08:06 +0200
| From | Ervin Hegedüs <airween@gmail.com> |
|---|---|
| Date | 2014-09-12 08:06 +0200 |
| Subject | Re: Example of python service running under systemd? |
| Message-ID | <mailman.13960.1410501914.18130.python-list@python.org> |
Hi Michael, On Thu, Sep 11, 2014 at 08:03:54PM -0600, Michael Torrie wrote: > >> What I want is to have this startup, after my board has it’s networking layer up and running (and hopefully a valid ip address by then), and to just keep running forever > > > > may be you think about the fork(), eg: > > No, you you don't need to do this. Systemd can handle all of that for > you. Read up on the docs on creating systemd services. Here's a little > blog post that has some good examples, both a non-daemonizing service > and a daemonizing service: > > http://patrakov.blogspot.com/2011/01/writing-systemd-service-files.html > > Any executable file can be turned into a daemon service with systemd > (whether or not it forks itself into the background). Thus any python > script can easily be run from systemd. thanks a lot, I didn't hear about that feature. Cheers, Ervin
Back to top | Article view | comp.lang.python
csiph-web