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


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

Re: Example of python service running under systemd?

Started byChris “Kwpolska” Warrick <kwpolska@gmail.com>
First post2014-09-11 20:18 +0200
Last post2014-09-11 20:18 +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.


Contents

  Re: Example of python service running under systemd? Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-09-11 20:18 +0200

#77773 — Re: Example of python service running under systemd?

FromChris “Kwpolska” Warrick <kwpolska@gmail.com>
Date2014-09-11 20:18 +0200
SubjectRe: Example of python service running under systemd?
Message-ID<mailman.13938.1410459538.18130.python-list@python.org>
On Thu, Sep 11, 2014 at 7:48 PM, Travis Griggs <travisgriggs@gmail.com> wrote:
> I’ve been reading lots of systemd docs. And blogs. Etc. At this point, I think I would benefit from learning by example…
>
> Does anyone have an example .service file that they use to launch a long running service written as a python program?
>
> If there is any example of what you changed to your python program itself, that to would be really instructional for me.
> --
> https://mail.python.org/mailman/listinfo/python-list

Depends what you want.  If you are running a Python web app, you can
use uWSGI Emperor, which plugs into systemd nicely and provides a
.service file in the docs (which also ships with the Arch Linux
package).  Otherwise, there are various ways, and this all depends on
how you structure this and your needs.  Use Type=simple and you won’t
need any changes to your program, or use one of the more magical
methods and implement them.  Describe your needs to get more details.
-- 
Chris “Kwpolska” Warrick <http://chriswarrick.com/>
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense

[toc] | [standalone]


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


csiph-web