Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Moode and power loss (aka writes to the sd card)
#34
Interesting.

I ran a quick test

Code:
sudo systemctl disable rsyslog.service
sudo /var/www/util/sysutil.sh clear-syslogs
sudo reboot

And end up with total 27M for /var/log/ which doesn't seem to grow

Code:
Every 2.0s: sudo du -h /var/log/                                                                                                                        moode: Sat Jun 24 10:21:30 2023

4.0K    /var/log/mpd
4.0K    /var/log/private
4.0K    /var/log/apt
4.2M    /var/log/sysstat
4.0K    /var/log/runit/dnsmasq
4.0K    /var/log/runit/ssh
12K     /var/log/runit
4.0K    /var/log/samba/cores/winbindd
8.0K    /var/log/samba/cores
16K     /var/log/samba
23M     /var/log/journal/8b6c504fa6fd4ec39aba2804b2479ff0
23M     /var/log/journal
4.0K    /var/log/nginx
27M     /var/log/

The systemd journal log (23M) from what I've read can't or shouldn't be turned off.

Couple notes:

1. Maybe add to the TODO list to have an option for System Logging (Default or Minimal) 
2. The built in moOde maintenance task runs every 6 hours and one thing it does is truncate the system logs using the command below.

Code:
/var/www/util/sysutil.sh clear-syslogs
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
RE: Moode and power loss (aka writes to the sd card) - by Tim Curtis - 06-24-2023, 02:29 PM

Forum Jump: