Better readme

fix #135
This commit is contained in:
Azlux 2020-10-29 10:04:17 +01:00 committed by David MICHEL
parent d83aa8d631
commit 28dd509071
2 changed files with 5 additions and 10 deletions

View File

@ -32,18 +32,20 @@ _____
cd ..
rm -r log2ram-master
For better performances. `RSYNC` is a recommended package.
**REBOOT** before installing anything else (for example apache2)
## Upgrade
You need to stop log2ram (`service log2ram stop`) and start the [install](#install).
You need to stop log2ram (`service log2ram stop`) and start the [install](#install). (APT will do it automatically)
## Customize
#### variables :
In the file `/etc/log2ram.conf`, there are three variables:
- `SIZE`: defines the size the log folder will reserve into the RAM (default is 40M).
- `USE_RSYNC`: Can be set to `true` if you prefer ´rsync´ rather than ´cp´. I use the command `cp -u` and `rsync -X`, I don't copy the all folder every time for optimization.
- `MAIL`: Disables the error system mail if there is not enough place on RAM (if set to `false`)
- `PATH_DISK`: activate log2ram for other path than default one. Paths should be separated with a `;`
- `ZL2R`: Enable zram compatibility (`false` by default). Check the comment on the config file. See https://github.com/StuartIanNaylor/zram-swap-config to configure a zram space on your raspberry before enable this option.
#### refresh time:
@ -69,9 +71,7 @@ log2ram on /var/log type tmpfs (rw,nosuid,nodev,noexec,relatime,size=40960k,mode
```
If you have issue with apache2, you can try to add `apache2.service` next to other services on the `Before` parameter in `/etc/systemd/system/log2ram.service` it will solve the pb
The log for log2ram will be written at: `/var/log/log2ram.log`
The log for log2ram will be written at: `/var/log/log2ram.log` and available with `sudo journalctl -t log2ram`
Compressor for zram. Usefull for the `COMP_ALG` of ZRAM on the config file.

View File

@ -7,11 +7,6 @@
# You will need to increase it if you have a server and a lot of log for example.
SIZE=40M
# This variable can be set to true if you prefer "rsync" rather than "cp".
# I use the command cp -u and rsync -X, so I don't copy the all folder every time for optimization.
# You can choose which one you want. Be sure rsync is installed if you use it.
USE_RSYNC=false
# If there are some errors with available RAM space, a system mail will be send
# Change it to false and you will have only a log if there is no place on RAM anymore.
MAIL=true