mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-24 13:38:11 +00:00
Tweak ramlog sized and clear before upgrades
This commit is contained in:
parent
ef8774af22
commit
32ac3ed159
|
@ -4,7 +4,7 @@
|
|||
ENABLED=true
|
||||
#
|
||||
# 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
|
||||
# requires rsync installed, may provide better performance
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
ENABLED=true
|
||||
#
|
||||
# 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
|
||||
# requires rsync installed, may provide better performance
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# 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.
|
||||
# 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".
|
||||
# I use the command cp -u and rsync -X, so I don't copy the all folder every time for optimization.
|
||||
|
|
|
@ -11,6 +11,9 @@ date
|
|||
# Shut down main services to save memory and CPU
|
||||
/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
|
||||
dpkg --configure -a
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user