Skip to content

Commit

Permalink
Dump storage configuration on update check for easier debugging of st…
Browse files Browse the repository at this point in the history
…orage related issues
  • Loading branch information
lloesche committed Mar 28, 2021
1 parent 182fd56 commit fe93db5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions valheim-updater
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ main() {
ensure_permissions
verify_cpu_mhz
verify_memory
verify_storage
update
check_server_restart
next_update=$(($(date +%s)+UPDATE_INTERVAL))
Expand Down Expand Up @@ -134,6 +135,13 @@ verify_memory() {
}


verify_storage() {
debug "Storage configuration:"
df -h | grep -v -E "^(tmpfs|shm)" | grep -v -E "(/sys/|/etc/|/run/)"
grep -v -E "^(proc|tmpfs|devpts|shm|mqueue|sysfs)" /etc/mtab | grep -v -E "(/sys/|/etc/|/run/)"
}


check_server_restart() {
local mode
# The control file $valheim_restartfile is either created
Expand Down

0 comments on commit fe93db5

Please sign in to comment.