summaryrefslogtreecommitdiffstats
path: root/core/modules/idleaction
diff options
context:
space:
mode:
authorSimon Rettberg2018-10-12 10:26:52 +0200
committerSimon Rettberg2018-10-12 10:26:52 +0200
commitd3d4de846854dc2e4cc2858eef9e347f3c6a5693 (patch)
tree60af43d8fc903c3f51b63cbf937d107b495cec52 /core/modules/idleaction
parent[idleaction] Lower cron interval from 5 to 2 minutes (diff)
downloadmltk-d3d4de846854dc2e4cc2858eef9e347f3c6a5693.tar.gz
mltk-d3d4de846854dc2e4cc2858eef9e347f3c6a5693.tar.xz
mltk-d3d4de846854dc2e4cc2858eef9e347f3c6a5693.zip
[idleaction] Delete $RUNFILE on session kill
Diffstat (limited to 'core/modules/idleaction')
-rwxr-xr-xcore/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script b/core/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script
index d60799a6..baa6a662 100755
--- a/core/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script
+++ b/core/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script
@@ -105,6 +105,7 @@ if [ -n "${SLX_LOGOUT_TIMEOUT}" ] && [ "${SLX_LOGOUT_TIMEOUT}" -gt 0 ]; then
TIMEOUT=$(( IDLE + SLX_LOGOUT_TIMEOUT ))
if [ "$TIMEOUT" -lt "$NOW" ]; then
+ rm -f -- "$RUNFILE"
date +%s > /run/openslx/session-killed
loginctl terminate-session "$ses"
else
@@ -115,6 +116,7 @@ if [ -n "${SLX_LOGOUT_TIMEOUT}" ] && [ "${SLX_LOGOUT_TIMEOUT}" -gt 0 ]; then
# xprint* did not work?
IS_IDLE=no
fi
+ RUNFILE=
continue # Done with this session, skip normal tty/ssh checks
fi
# end X11