-
Notifications
You must be signed in to change notification settings - Fork 184
qemu: Ensure virtio journal streaming is killed on shutdown #4290
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1649,7 +1649,12 @@ func (builder *QemuBuilder) VirtioJournal(config *conf.Conf, queryArguments stri | |
# won't be added to this unit, which would cause it to get | ||
# taken down when isolating to emergency.target | ||
DefaultDependencies=no | ||
After=systemd.journal.service | ||
After=systemd-journald.socket | ||
# Do however ensure we get killed before /var is going to be | ||
# unmounted, otherwise we keep it open. | ||
After=local-fs.target | ||
# Do get killed on shutdown | ||
Conflicts=shutdown.target | ||
Comment on lines
+1656
to
+1657
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While Since both this unit and The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, and I think Gemini's review doesn't understand the semantics here with That said There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. right. and we have |
||
# After systemd-journal-flush because otherwise the journalctl -f | ||
# below will stop when the journal is flushed. Not sure if this is | ||
# a bug or intended behavior. | ||
|
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.
Also this was always wrong and did nothing, we now use the socket correctly
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.e.
systemd.journal.service
should have beensystemd-journal.service
?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.
Probably yes, but it's more correct to be after the socket, which is what we want to talk to