diff options
author | Simon Rettberg | 2023-12-14 12:11:16 +0100 |
---|---|---|
committer | Simon Rettberg | 2023-12-14 12:11:16 +0100 |
commit | af09a5cf8ad76b156e4a48d77ecfada9c6402325 (patch) | |
tree | e61d7ba8a8b21830470ef3e000bf26fa14b4aed2 /core/modules/idleaction/data/opt/openslx/scripts/idle-daemon-launcher | |
parent | [kiosk-chromium] Properly fix auto reload/restart (diff) | |
download | mltk-af09a5cf8ad76b156e4a48d77ecfada9c6402325.tar.gz mltk-af09a5cf8ad76b156e4a48d77ecfada9c6402325.tar.xz mltk-af09a5cf8ad76b156e4a48d77ecfada9c6402325.zip |
[idleaction] Log shutdown/reboot/.. details in exam mode
We have a report about spurious reboots of machines in exam mode while
in use, so try to rule out that this was caused by idle-daemon logic by
logging any such action it would perform through a wrapper script.
Diffstat (limited to 'core/modules/idleaction/data/opt/openslx/scripts/idle-daemon-launcher')
-rwxr-xr-x | core/modules/idleaction/data/opt/openslx/scripts/idle-daemon-launcher | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/modules/idleaction/data/opt/openslx/scripts/idle-daemon-launcher b/core/modules/idleaction/data/opt/openslx/scripts/idle-daemon-launcher index 640ef9fb..62a919ee 100755 --- a/core/modules/idleaction/data/opt/openslx/scripts/idle-daemon-launcher +++ b/core/modules/idleaction/data/opt/openslx/scripts/idle-daemon-launcher @@ -29,6 +29,7 @@ if [ -z "${SLX_EXAM}" ]; then else # Exam mode active CMD="$CMD --min-idle 7200" # Ignore schedule if idle time is lower than 2h + CMD="$CMD --cmd /opt/openslx/scripts/idle-daemon-trigger-wrapper" # Use wrapper for slxlog # Add additional times -- We might miss tightly scheduled ones because of --min-idle if [ -n "$SLX_SHUTDOWN_SCHEDULE" ]; then SLX_SHUTDOWN_SCHEDULE="$SLX_SHUTDOWN_SCHEDULE 23:00 4:00" |