Skip to content

Commit

Permalink
core: tools: scripts: Add journalctl-vacuum
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Jul 6, 2024
1 parent 4b5878d commit 556b5be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/tools/scripts/journalctl-vacuum
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/local/bin/python
from commonwealth.utils.commands import run_command
from loguru import logger

if __name__ == "__main__":
ret = run_command("journalctl --vacuum-size=100M", False)
logger.add("/tmp/journal-vacuum.log")
logger.debug(f"Command output: {ret}")

0 comments on commit 556b5be

Please sign in to comment.