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

Ian Pilcher arequipeno at gmail.com
Sat Jul 25 22:22:37 UTC 2020


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 seeing exactly the
same behavior.

This is a templated service, if that matters.

Any idea what I can do to get these messages properly associated?

(systemd-219-73.el7_8.8.x86_64 on CentOS 7)

Thanks!

-- 
========================================================================
                  In Soviet Russia, Google searches you!
========================================================================



More information about the systemd-devel mailing list