Tweak ramlog sized and clear before upgrades

This commit is contained in:
Taylor Helsper 2020-02-16 18:27:26 -06:00
parent ef8774af22
commit 32ac3ed159
4 changed files with 6 additions and 3 deletions

View File

@ -4,7 +4,7 @@
ENABLED=true ENABLED=true
# #
# size of the tmpfs mount -- please keep in mind to adjust /etc/default/armbian-zram-config too when increasing # size of the tmpfs mount -- please keep in mind to adjust /etc/default/armbian-zram-config too when increasing
SIZE=100M SIZE=125M
# #
# use rsync instead of cp -r # use rsync instead of cp -r
# requires rsync installed, may provide better performance # requires rsync installed, may provide better performance

View File

@ -4,7 +4,7 @@
ENABLED=true ENABLED=true
# #
# size of the tmpfs mount -- please keep in mind to adjust /etc/default/armbian-zram-config too when increasing # size of the tmpfs mount -- please keep in mind to adjust /etc/default/armbian-zram-config too when increasing
SIZE=100M SIZE=150M
# #
# use rsync instead of cp -r # use rsync instead of cp -r
# requires rsync installed, may provide better performance # requires rsync installed, may provide better performance

View File

@ -5,7 +5,7 @@
# If it's not enough, log2ram will not be able to use ram. Check you /var/log size folder. # If it's not enough, log2ram will not be able to use ram. Check you /var/log size folder.
# The default is 40M and is basically enough for a lot of applications. # The default is 40M and is basically enough for a lot of applications.
# You will need to increase it if you have a server and a lot of log for example. # You will need to increase it if you have a server and a lot of log for example.
SIZE=100M SIZE=125M
# This variable can be set to true if you prefer "rsync" rather than "cp". # This variable can be set to true if you prefer "rsync" rather than "cp".
# I use the command cp -u and rsync -X, so I don't copy the all folder every time for optimization. # I use the command cp -u and rsync -X, so I don't copy the all folder every time for optimization.

View File

@ -11,6 +11,9 @@ date
# Shut down main services to save memory and CPU # Shut down main services to save memory and CPU
/usr/bin/mynode_stop_critical_services.sh /usr/bin/mynode_stop_critical_services.sh
# Delete ramlog to prevent ram issues
rm -rf /var/log/*
# Check if any dpkg installs have failed and correct # Check if any dpkg installs have failed and correct
dpkg --configure -a dpkg --configure -a