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


Groups > comp.lang.python > #77826

Re: Python stdout goes where under systemd? (Was: Example of python service running under systemd?)

References (5 earlier) <CAPTjJmq4fYOs-qvko9q9S=M7PNGOLPBTDiPZ6R0PvMrAULC=3g@mail.gmail.com> <20140912061806.GB3333@arxnet.hu> <CAPTjJmqTYmGy8WHm5a3Vo-A+vXjoXJWf4C0Nr7qXeBuHSEC_AQ@mail.gmail.com> <997C8621-DD83-461C-9F2E-45BB360DAC18@gmail.com> <BD451EB8-9459-47EB-9625-43EB4103BF89@gmail.com>
Date 2014-09-13 11:50 +1000
Subject Re: Python stdout goes where under systemd? (Was: Example of python service running under systemd?)
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.13986.1410573019.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Sat, Sep 13, 2014 at 7:45 AM, Travis Griggs <travisgriggs@gmail.com> wrote:
> Python print() is buffered, so it wasn’t showing up except in huge blocks. Changed the .service file to start with -u and everything works as expected now.

Ah, yes, that'll happen any time stdout isn't connected to a tty.
Nothing to do with systemd or journal.

ChrisA

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


Thread

Re: Python stdout goes where under systemd? (Was: Example of python service running under systemd?) Chris Angelico <rosuav@gmail.com> - 2014-09-13 11:50 +1000

csiph-web