Skip to content
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

Delete /var/log/journal/ #3

Merged
merged 1 commit into from Feb 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions install.sh
@@ -1,5 +1,13 @@
#!/usr/bin/env sh

# Under latest RPi-OS the folder /var/log/journal is created so journald reverts to persistent journal files
# Delete this folder and restart service
if [ -d /var/log/journal ]; then
echo "/var/log/journal present - remove for volatile journal files"
sudo rm -rf /var/log/journal
sudo systemctl restart systemd-journald
fi

systemctl -q is-active log2ram && { echo "ERROR: log2ram service is still running. Please run \"sudo service log2ram stop\" to stop it."; exit 1; }
[ "$(id -u)" -eq 0 ] || { echo "You need to be ROOT (sudo can be used)"; exit 1; }

Expand Down