Bladeren bron

Confile File and README.md updates (#227)

* Update README.md with new/updated variables + fixed a few typos

* Update log2ram.conf

Remove duplicate JOURNALD_AWARE entry and cleaned-up related comments
master
Marc66 4 maanden geleden
committed by GitHub
bovenliggende
commit
12075982ca
Geen bekende sleutel gevonden voor deze handtekening in de database GPG sleutel-ID: B5690EEEBB952194
2 gewijzigde bestanden met toevoegingen van 12 en 13 verwijderingen
  1. +9
    -5
      README.md
  2. +3
    -8
      log2ram.conf

+ 9
- 5
README.md Bestand weergeven

@@ -94,13 +94,17 @@ You need to stop Log2Ram (`systemctl stop log2ram`) and execute the [installatio
## Customization

#### Variables
In the file `/etc/log2ram.conf`, there are five variables:
In the file `/etc/log2ram.conf`, there are nine variables:

- `SIZE`: defines the size the log folder will reserve into the RAM (default is 40M).
- `SIZE`: defines the size the log folder will reserve into the RAM (default is `128M`).
- `USE_RSYNC`: (commented out by default = `true`) use `cp` instead of `rsync` (if set to `false`).
- `MAIL`: disables the error system mail if there is not enough place on RAM (if set to `false`).
- `NOTIFICATION`: disables the notification system mail if there is not enough place in RAM (if set to `false`).
- `NOTIFICATION_COMMAND`: Specify the command for sending error notifications (By default, it uses the `mail` command).
- `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.
- `JOURNALD_AWARE`: enable log rotation for journald logs before syncing. (default is `true`). Check the comment in the config file or the [Troubleshooting](#Troubleshooting) section below for journald SystemMaxUse recommendations.
- `ZL2R`: enable zram compatibility (`false` by default). Check the comment in the config file. See https://github.com/StuartIanNaylor/zram-swap-config to configure a zram space on your raspberry before enabling this option.
- `COMP_ALG`: choose a compression algorithm from those listed in /proc/crypto. (default is `lz4`). See [Compressor](#Compressor) section below for options.
- `LOG_DISK_SIZE`: specifies the uncompressed zram disk size

#### Refresh time

@@ -118,7 +122,7 @@ The ``OnCalendar=`` is important because it disables all existing times (e.g. th
... Or even disable it altogether with `systemctl disable log2ram-daily.timer`, if you instead prefer Log2Ram to be writing logs only on system stops/reboots.

#### Compressor
Compressor for ZRAM. Useful for the `COMP_ALG` of ZRAM on the config file.
Compressor for ZRAM. Useful for the `COMP_ALG` of ZRAM in the config file.

| Compressor name | Ratio | Compression | Decompress. |
|------------------------|----------|-------------|-------------|


+ 3
- 8
log2ram.conf Bestand weergeven

@@ -29,15 +29,10 @@ SIZE=128M
# Example: PATH_DISK="/var/log;/home/test/FolderInRam"
PATH_DISK="/var/log"

# Should log2ram consider journald and do a log rotate before copying the log files back? Please note that for this
# rsync is mandatory. Also make sure that you have configured SystemMaxUse in journald.conf, because the size of this
# ram folder is will probably not be as large as journald will use by default
JOURNALD_AWARE=true

# Set to 'true' to enable log rotation for journald logs before syncing.
# Note: 'rsync' must be used for this feature.
# Ensure 'SystemMaxUse' is configured in 'journald.conf'
# - (To limit journald’s disk usage to be smaller than the log2ram RAM allocation).
# Note: 'rsync' must be used for this feature to work.
# Ensure 'SystemMaxUse' is configured in '/etc/systemd/journald.conf' (to limit journald’s disk usage)
# Note: Its value must be smaller than log2ram's RAM allocation defined by the SIZE variable above.
JOURNALD_AWARE=true




Laden…
Annuleren
Opslaan