Re: [systemd-devel] journald not associating log messages with service

2020-07-28 Thread Lennart Poettering
On Di, 28.07.20 12:12, Ian Pilcher (arequip...@gmail.com) wrote: > On 7/28/20 9:44 AM, Lennart Poettering wrote: > > Is the service short-lived? There's a race: if a process runs very > > quickly and logs journald might process the message after the process > > already exited, i.e. at a time where

Re: [systemd-devel] journald not associating log messages with service

2020-07-28 Thread Ian Pilcher
On 7/28/20 9:44 AM, Lennart Poettering wrote: Is the service short-lived? There's a race: if a process runs very quickly and logs journald might process the message after the process already exited, i.e. at a time where we can't read the cgroup off the process anymore. It is indeed a very short

Re: [systemd-devel] journald not associating log messages with service

2020-07-28 Thread Lennart Poettering
On Sa, 25.07.20 17:22, Ian Pilcher (arequip...@gmail.com) wrote: > I have a simple (non-forking) one-shot service that logs messages via > syslog. These messages are not being "associated" with the service > unit. I.e., they don't show up if I use journalctl's -u option > (although they are in t

[systemd-devel] journald not associating log messages with service

2020-07-25 Thread Ian Pilcher
I have a simple (non-forking) one-shot service that logs messages via syslog. These messages are not being "associated" with the service unit. I.e., they don't show up if I use journalctl's -u option (although they are in the journal). UPDATE: I just tried using sd_journal_print, and I'm seein