azlux / log2ram

ramlog like for systemd (Put log into a ram folder)
MIT License
2.65k stars 195 forks source link

README.md out of date regarding Customization #188

Open Jahfry opened 2 years ago

Jahfry commented 2 years ago

Minor documentation item:

README.md mentions:

Customize variables : In the file /etc/log2ram.conf, there are five variables:

SIZE: defines the size the log folder will reserve into the RAM (default is 40M). USE_RSYNC: (commented out by default = true) use cp instead of rsync (if set to false).

However the RSYNC option seems to have been modified to simply be used if rsync is present (which I appreciate).

  1. That chunk should be removed from the README.md?
  2. That would leave 4 customization options, but there are 6 present now. The missing 2 from the README.md file:

Ripe for addition.

On the subject of LOG_DISK_SIZE=100M I have a question (which was why I noticed the README was looking long in the tooth).

Do I need to update LOG_DISK_SIZE=100M if I up SIZE=? For example I'm running SIZE=400M (I've got additional folders I'm managing using PATH_DISK and have lots of extra RAM for my needs).

jult commented 1 year ago

As far as I understand it, LOG_DISK_SIZE= should be what the uncompressed (max) size of all dirs you have in the PATH_DISK= would need to be. The 'potentially used RAM if ZL2R is set to true' is what SIZE= needs to be. So, for example, in my use-case;