Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

45 Zeilen
2.6 KiB

  1. # Configuration file for Log2Ram (https://github.com/azlux/log2ram) under MIT license.
  2. # This configuration file is read by the log2ram service
  3. # Size for the ram folder, it defines the size the log folder will reserve into the RAM.
  4. # If it's not enough, log2ram will not be able to use ram. Check you /var/log size folder.
  5. # The default is 40M and is basically enough for a lot of applications.
  6. # You will need to increase it if you have a server and a lot of log for example.
  7. SIZE=128M
  8. # Select the log syncing method between the log directory on disk and in the RAM.
  9. # The variable may be uncommented out, setting it to false, if "cp" is preferred over "rsync".
  10. # Currently, this option needs to be unset or set to true for "rsync" to run,
  11. # with "cp" available for fallback when "rsync" is missing.
  12. # In all other cases, setting USE_RSYNC to anything other than true will default to "cp".
  13. #USE_RSYNC=false
  14. # If there are some errors with available RAM space, a system mail will be send
  15. # Change it to false and you will have only a log if there is no place on RAM anymore.
  16. MAIL=true
  17. # Variable for folders to put in RAM. You need to specify the real folder `/path/folder` , the `/path/hdd.folder` will
  18. # be automatically created. Multiple path can be separeted by `;`. Do not add the final `/` !
  19. # example : PATH_DISK="/var/log;/home/test/FolderInRam"
  20. PATH_DISK="/var/log"
  21. # Should log2ram consider journald and do a log rotate before copying the log files back? Please note that for this
  22. # rsync is mandatory. Also make sure that you have configured SystemMaxUse in journald.conf, because the size of this
  23. # ram folder is will probably not be as large as journald will use by default
  24. JOURNALD_AWARE=true
  25. # **************** Zram backing conf *************************************************
  26. # ZL2R Zram Log 2 Ram enables a zram drive when ZL2R=true ZL2R=false is mem only tmpfs
  27. ZL2R=false
  28. # COMP_ALG this is any compression algorithm listed in /proc/crypto
  29. # lz4 is fastest with lightest load but deflate (zlib) and Zstandard (zstd) give far better compression ratios
  30. # lzo is very close to lz4 and may with some binaries have better optimisation
  31. # COMP_ALG=lz4 for speed or Zstd for compression, lzo or zlib if optimisation or availabilty is a problem
  32. COMP_ALG=lz4
  33. # LOG_DISK_SIZE is the uncompressed disk size. Note zram uses about 0.1% of the size of the disk when not in use
  34. # LOG_DISK_SIZE is expected compression ratio of alg chosen multiplied by log SIZE
  35. # lzo/lz4=2.1:1 compression ratio zlib=2.7:1 zstandard=2.9:1
  36. # Really a guestimate of a bit bigger than compression ratio whilst minimising 0.1% mem usage of disk size
  37. LOG_DISK_SIZE=256M