From 28dd509071901c7b43c326f3e8af13305ba743a2 Mon Sep 17 00:00:00 2001 From: Azlux Date: Thu, 29 Oct 2020 10:04:17 +0100 Subject: [PATCH] Better readme fix #135 --- README.md | 10 +++++----- log2ram.conf | 5 ----- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index eb410c2..0e6284b 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/log2ram.conf b/log2ram.conf index b057eab..853f71a 100644 --- a/log2ram.conf +++ b/log2ram.conf @@ -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