**REBOOT** before installing anything else (for example apache2)
**REBOOT** before installing anything else (for example apache2)
## Customize
## Customize
#### variables :
#### variables :
In the file `/etc/log2ram.conf`, there are three variables:
In the file `/etc/log2ram.conf`, there are three variables:
- `SIZE`: defines the size the log folder will reserve into the RAM.
- `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.
- `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`)
- `MAIL`: Disables the error system mail if there is not enough place on RAM (if set to `false`)
#### refresh time:
#### refresh time:
@@ -30,8 +30,15 @@ By default Log2Ram writes to the HardDisk every hour. If you think this is too m
### It is working?
### It is working?
You can now check the mount folder in ram with (You will see lines with log2ram if working)
You can now check the mount folder in ram with (You will see lines with log2ram if working)
```
```
df -h
mount
# df -h
…
log2ram 40M 532K 40M 2% /var/log
…
# mount
…
log2ram on /var/log type tmpfs (rw,nosuid,nodev,noexec,relatime,size=40960k,mode=755)
…
```
```
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
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