瀏覽代碼

README: Adjust "Is it working?" a bit, mention "systemctl status"

pull/160/head
Rasmus Bondesson 3 年之前
父節點
當前提交
c88b4cfb24
共有 1 個文件被更改,包括 17 次插入9 次删除
  1. +17
    -9
      README.md

+ 17
- 9
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)


Loading…
取消
儲存