[systemd-devel] How to allow a user to use journalctl to see user-specific systemd service logs?

Mantas Mikul─Śnas grawity at gmail.com
Mon Oct 3 20:13:53 UTC 2016

On Mon, Oct 3, 2016 at 9:59 PM, Daniel Ng <danielng56 at gmail.com> wrote:

> I am running user-level services in Ubuntu 16.04 LTS.  For example, I have
> my test.service located at ~/.config/systemd/user/test.service
> I was able to run the service by doing
>     systemctl --user start test.target
> However, when I try to read its log using journalctl, I got this error
> message:
>     journalctl --user -u test.service

The option is --user-unit. -u always refers to system units.

Mantas Mikul─Śnas <grawity at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20161003/fb500814/attachment.html>

More information about the systemd-devel mailing list