Skip to content

Call daemon reload just in case#141

Open
tomli380576 wants to merge 1 commit intomainfrom
journal-confg-fix
Open

Call daemon reload just in case#141
tomli380576 wants to merge 1 commit intomainfrom
journal-confg-fix

Conversation

@tomli380576
Copy link
Copy Markdown
Contributor

@tomli380576 tomli380576 commented Apr 29, 2026

and make the upper limit bigger

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Tools/PC/persist_journal.py helper script to retain more systemd journal data by increasing the configured disk usage cap and adjusting the service reload/restart sequence.

Changes:

  • Increase journald SystemMaxUse from 10G to 50G.
  • Add a systemctl daemon-reload call before restarting systemd-journald.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +54 to 55
sp.run(["sudo", "systemctl", "daemon-reload"])
sp.run(["sudo", "systemctl", "restart", "systemd-journald"])
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This script already exits unless it’s run as root (os.getuid() == 0), so invoking systemctl via sudo here is redundant and can break in environments without sudo or where sudo requires a TTY. Consider calling systemctl directly and using check=True so failures don’t get silently ignored.

Also, daemon-reload is intended for unit file changes; it doesn’t apply to journald.conf and can be removed unless there’s a specific unit/drop-in change this script makes.

Copilot uses AI. Check for mistakes.
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.

2 participants