diff --git a/core/tools/scripts/journalctl-vacuum b/core/tools/scripts/journalctl-vacuum new file mode 100755 index 0000000000..349304c57c --- /dev/null +++ b/core/tools/scripts/journalctl-vacuum @@ -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}")