-
Notifications
You must be signed in to change notification settings - Fork 45
Add override.conf for systemd-journald service file. #446
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
base: 3.0-dev
Are you sure you want to change the base?
Add override.conf for systemd-journald service file. #446
Conversation
# so adding below entry to systemd-journald.service, to stop journald | ||
# when system starts to unmount. | ||
[Unit] | ||
After=umount.target |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tells systemd to start the systemd-journald.service
only after the umount.target
has been reached - where umount.target
is part of the shutdown. This means systemd-journald.service
won't be running during normal system uptime.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @yepmunchun ,
I do see that systemd-journald.service is running during system uptime. verified through sudo systemctl status systemd-journald.service command and also observed logs are getting logged on execution i.e sudo journalctl -f. Attaching the log for reference.
journal.log
Instead of overriding the |
Hi @yepmunchun, |
- During shutdown, there was conflict between journald and - umount.target resulting error logs on console. so added a - override.conf file to stop journal-flush when unmounting starts. Signed-off-by: Unniche, BasavarajX <[email protected]>
9d1fed7
to
bb14467
Compare
# https://fedoraproject.org/wiki/Changes/Systemd_presets_for_user_units. | ||
systemctl preset-all &>/dev/null || : | ||
systemctl --global preset-all &>/dev/null || : | ||
systemctl daemon-reload &>/dev/null ||: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we do not need this
# changelog here. | ||
%changelog | ||
* Tue Oct 17 2025 Basavaraj unniche <[email protected]> - 255-30 | ||
- Add override.conf to systemd-journal-flush.service to fix conflict issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filename not override.conf
Merge Checklist
All boxes should be checked before merging the PR
Description
"Failed unmounting var.mount" error was logged during os reboot. on investigating, there was a conflict between journald and umount.target which is keeping /var busy during unmounting. Added override.conf to overcome this issue. Ref ITEP-27253.
Any Newly Introduced Dependencies
How Has This Been Tested?
With changes, created raw image, loaded and on os reboot, not seeing any error log. Attached test results, to reported issue.