T
T
topuserman2020-02-05 11:58:37
linux
topuserman, 2020-02-05 11:58:37

How to see systemd unit errors/logs?

I created my own systemd unit, which runs a certain php script.

When viewing the status of a unit, via systemctl status my-unit , I also get a list of the last 10 lines of logs (errors that occurred).

How can I see the full list of errors for a particular unit?
And how can I disable the output of errors when viewing the status?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zersh, 2020-02-05
@zersh

journalctl -u my-unit

R
Radjah, 2020-02-05
@Radjah

man journalctl

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question