Skip to content

Conversation

@rvl
Copy link

@rvl rvl commented Oct 22, 2025

Most systemd services write their logs to the systemd journal by default. I think tuned should do likewise, because users would expect this, and it's useful to be able to read tuned logs together with other system logs.

So this PR changes the systemd services to remove the -l (log to /var/log/tuned/tuned.log) option.

It also adds a systemd-specific log formatter, which is only enabled when running in a systemd service and logging to console.

I chose not to use the python-systemd module because the extra dependency can be avoided with very little code.

@rvl rvl force-pushed the systemd-journal-logging branch from a8f3ee3 to ef0ec6a Compare October 23, 2025 02:04
@rvl rvl force-pushed the systemd-journal-logging branch from ef0ec6a to abcb00b Compare October 23, 2025 02:15
@rvl rvl changed the title logging: Adjust console logging format when running under systemd Adjust console logging format when running under systemd Oct 23, 2025
@rvl rvl marked this pull request as ready for review October 23, 2025 02:26
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

Successfully merging this pull request may close these issues.

1 participant