Program output not linked to service unit in the journal when service executes as a user

Solution In Progress - Updated -

Issue

  • When executing a service as a user, using the User=<userid> directive in the service unit (except User=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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content