From 912eae8f35361a3aea0fd10fccff8fbf81fbac06 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 7 Mar 2023 16:04:39 +0100 Subject: [hardware-stats] Let any errors go to stdout --- .../hardware-stats/data/opt/openslx/scripts/cron-system_usage_update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/modules/hardware-stats') diff --git a/core/modules/hardware-stats/data/opt/openslx/scripts/cron-system_usage_update b/core/modules/hardware-stats/data/opt/openslx/scripts/cron-system_usage_update index 1b2ab1ae..b3c89458 100755 --- a/core/modules/hardware-stats/data/opt/openslx/scripts/cron-system_usage_update +++ b/core/modules/hardware-stats/data/opt/openslx/scripts/cron-system_usage_update @@ -100,7 +100,7 @@ fi # or if the cron-job hasn't been set up yet. # Do this right before the curl call to minimize odds for a race condition if [ -e "/etc/cron.d/usage_stats" ] && ! [ -e "/run/openslx/shutdown.mutex" ]; then - curl --retry 3 --retry-connrefused --connect-timeout 3 --max-time 15 --retry-max-time 20 -s \ + curl --retry 3 --retry-connrefused --connect-timeout 3 --max-time 15 --retry-max-time 20 -sS \ --data-urlencode "type=~runstate" --data-urlencode "uuid=$UUID" \ --data-urlencode "used=$USED" \ --data-urlencode "user=$Name" --data-urlencode "tmpsize=$TMP_SIZE" --data-urlencode "tmpfree=$TMP_FREE" \ @@ -108,7 +108,7 @@ if [ -e "/etc/cron.d/usage_stats" ] && ! [ -e "/run/openslx/shutdown.mutex" ]; t --data-urlencode "swapsize=$SWAP_SIZE" --data-urlencode "swapfree=$SWAP_FREE" \ --data-urlencode "memsize=$MEM_SIZE" --data-urlencode "memfree=$MEM_FREE" \ "$@" \ - "$SLX_REMOTE_LOG" > /dev/null 2>&1 + "$SLX_REMOTE_LOG" | grep -v 'RESULT=0' fi # Warn user if tmp or swap usage is high; system might crash soon -- cgit v1.2.3-55-g7522