Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme.md jounalctl #8

Open
jgwinner opened this issue Mar 8, 2020 · 2 comments
Open

Readme.md jounalctl #8

jgwinner opened this issue Mar 8, 2020 · 2 comments

Comments

@jgwinner
Copy link

jgwinner commented Mar 8, 2020

I think the line:

$ journalctl --user-unit python_demo_service

should actually be:

journalctl _SYSTEMD_UNIT=python_demo_service.service

Or at least, that's what worked for me on a Raspberry Pi 4, running Buster (Raspian/Debbian). YLMV!

@ollipal
Copy link

ollipal commented Aug 31, 2021

It should actually be changed to:

$ journalctl python_demo_service

to follow the style with other examples (_SYSTEMD_UNIT= and .service are optional)

@TriMoon
Copy link

TriMoon commented Nov 29, 2024

You are both wrong...

  • @jgwinner the line is correct, it is a shorthand for journalctl --user --unit=python_demo_service.
    (The .service at end is implied by default)

  • @ollipal the service is a user-unit and your command is for system-units.

So this issue should be closed as invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants