diff options
author | Simon Rettberg | 2018-10-12 10:26:52 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-10-12 10:26:52 +0200 |
commit | d3d4de846854dc2e4cc2858eef9e347f3c6a5693 (patch) | |
tree | 60af43d8fc903c3f51b63cbf937d107b495cec52 /core | |
parent | [idleaction] Lower cron interval from 5 to 2 minutes (diff) | |
download | mltk-d3d4de846854dc2e4cc2858eef9e347f3c6a5693.tar.gz mltk-d3d4de846854dc2e4cc2858eef9e347f3c6a5693.tar.xz mltk-d3d4de846854dc2e4cc2858eef9e347f3c6a5693.zip |
[idleaction] Delete $RUNFILE on session kill
Diffstat (limited to 'core')
-rwxr-xr-x | core/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script | 2 |
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 |