From c88b4cfb2462abe3f52adbbff7e523c2c9881512 Mon Sep 17 00:00:00 2001 From: Rasmus Bondesson Date: Tue, 15 Jun 2021 20:46:51 +0200 Subject: [PATCH] README: Adjust "Is it working?" a bit, mention "systemctl status" --- README.md | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 6490ec2..711b267 100644 --- a/README.md +++ b/README.md @@ -37,21 +37,29 @@ For better performances. `RSYNC` is a recommended package. **REBOOT** before installing anything else (for example apache2) ## Is it working? -You can now check the mount folder in ram with (You will see lines with log2ram if working) +After installing and rebooting, use systemctl to check if Log2Ram started successfully: + +``` +systemctl status log2ram +``` + +This will show a color-coded status (green active/red failed) as well as the last few log lines. To show the full log (scrolled to the end), run: + ``` -# df -h -… +journalctl -u log2ram -e +``` + +The log is also written to `/var/log/log2ram.log`. + +You can also inspect the mount folder in ram with (You will see lines with log2ram if working) +``` +# df -h | grep log2ram log2ram 40M 532K 40M 2% /var/log -… -# mount -… +# mount | grep log2ram log2ram on /var/log type tmpfs (rw,nosuid,nodev,noexec,relatime,size=40960k,mode=755) -… ``` -The log for log2ram will be written at: `/var/log/log2ram.log` and available with `sudo journalctl -t log2ram` - ## Upgrade You need to stop log2ram (`service log2ram stop`) and start the [install](#install). (APT will do it automatically)