kemonine
/
lollipopcloud
Archived
1
0
Fork 0
This repository has been archived on 2022-08-05. You can view files and clone it, but cannot push or open issues or pull requests.
lollipopcloud/advanced/var_log_move.md

26 lines
699 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Move ```/var/log```
You can disable logging to ram by setting `ENABLED=false´ in `/etc/default/armbian-ramlog´.
``` bash
systemctl stop rsyslog.service
systemctl stop syslog.socket
lsof /var/log # (make sure it's empty)
systemctl stop log2ram
systemctl disable log2ram
systemctl stop armbian-ramlog.service
systemctl disable armbian-ramlog.service
systemctl stop armbian-zram-config.service
systemctl disable armbian-zram-config.service
nano -w /etc/default/armbian-ramlog
# Disable
nano -w /etc/default/armbian-zram-config
# Disable if *not* using swap in ram
mv /var/log /var/oldlog
mkdir /var/log
rsync -aPr /var/oldlog/ /var/log/
systemctl reboot
```