summaryrefslogtreecommitdiffstats
path: root/core/modules/hardware-stats/data/opt/openslx/scripts
diff options
context:
space:
mode:
authorSimon Rettberg2019-04-03 18:24:47 +0200
committerSimon Rettberg2019-04-03 18:24:47 +0200
commita937f7a47a8838a692f434f778f47e607a569b8f (patch)
tree6662471ad9384b5bbcb6a0d05f1a5971676c54b0 /core/modules/hardware-stats/data/opt/openslx/scripts
parent[xorg] Remove "set -e" (diff)
downloadmltk-a937f7a47a8838a692f434f778f47e607a569b8f.tar.gz
mltk-a937f7a47a8838a692f434f778f47e607a569b8f.tar.xz
mltk-a937f7a47a8838a692f434f778f47e607a569b8f.zip
[hardware-stats] Use ExecStop for shutdown notification
Try a different approach: Since out initial hardware-stats service logging the poweron event is a oneshot with RemainAfterExit set, make the shutdown reporting script its ExecStop line (and hope that this works reliably on shutdown).
Diffstat (limited to 'core/modules/hardware-stats/data/opt/openslx/scripts')
-rwxr-xr-xcore/modules/hardware-stats/data/opt/openslx/scripts/shutdown-system_usage_update2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/hardware-stats/data/opt/openslx/scripts/shutdown-system_usage_update b/core/modules/hardware-stats/data/opt/openslx/scripts/shutdown-system_usage_update
index f163f39f..983a882e 100755
--- a/core/modules/hardware-stats/data/opt/openslx/scripts/shutdown-system_usage_update
+++ b/core/modules/hardware-stats/data/opt/openslx/scripts/shutdown-system_usage_update
@@ -7,6 +7,6 @@ UUID=$(cat /etc/system-uuid)
[ -z "$UUID" ] && exit 1
-curl --retry 3 --retry-connrefused -s --data-urlencode "type=~poweroff" --data-urlencode "uuid=$UUID" \
+curl --retry 3 --retry-connrefused --max-time 3 --max-time-retry 10 -s --data-urlencode "type=~poweroff" --data-urlencode "uuid=$UUID" \
"$SLX_REMOTE_LOG" > /dev/null 2>&1