[systemd-devel] How does journald talks to other services?

Mantas Mikulėnas grawity at gmail.com
Fri Aug 20 11:11:30 UTC 2021


On Fri, Aug 20, 2021 at 2:10 PM Nishant Nayan <nayan.nishant2000 at gmail.com>
wrote:

> Regarding the below point :
> c) The service prints to stdout/stderr, but systemd attaches the service's
> stdout/stderr to a pipe which is read by journald (using
> sd_journal_stream_fd(3) from libsystemd). See [Service] StandardOutput= in
> systemd.service(5).
>
> I did not see StandardOutput field in [Service] sections of a service
> file, for example sshd.service, but its logs are visible in journalctl.
> Is it by default piped to journal and we need to explicitly mention it
> (StandardOutput=)  only when we want to redirect it somewhere else?
>

StandardOutput=journal is the default setting.

-- 
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20210820/b8a8a1e4/attachment.htm>


More information about the systemd-devel mailing list