Program output not linked to service unit in the journal when service executes as a user
Issue
-
When executing a service as a user, using the
User=<userid>
directive in the service unit (exceptUser=root
), the output of the program is not linked to the service unit. -
When running
#systemctl status service-name
it does not shows output generated by the service.
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- systemd-219-78.el7_9.7
- systemd-239-58.el8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.