summaryrefslogtreecommitdiffstats
path: root/core/modules/idleaction
diff options
context:
space:
mode:
authorSimon Rettberg2018-03-22 11:31:53 +0100
committerSimon Rettberg2018-03-22 11:31:53 +0100
commitdd164df671b5b9a486746c4f33591ceef5c4bed5 (patch)
treea71a5004a08f6b535531939d9ccbf48ef77c3ef3 /core/modules/idleaction
parent[vmchooser2] When autologin is enabled, delay startup if needed to prevent OOM (diff)
downloadmltk-dd164df671b5b9a486746c4f33591ceef5c4bed5.tar.gz
mltk-dd164df671b5b9a486746c4f33591ceef5c4bed5.tar.xz
mltk-dd164df671b5b9a486746c4f33591ceef5c4bed5.zip
Forgot fith fcript
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 5ae2432c..cb3c50fa 100755
--- a/core/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script
+++ b/core/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script
@@ -59,6 +59,7 @@ if [ -n "${SLX_LOGOUT_TIMEOUT}" ] && [ "${SLX_LOGOUT_TIMEOUT}" -gt 0 ]; then
if [ -z "$IDLE" ] || [ "$IDLE" -lt "$SLX_LOGOUT_TIMEOUT" ]; then
IS_IDLE=no
else
+ date +%s > /run/openslx/session-killed
loginctl terminate-session "$ses"
fi
else # xprintidle did not work
@@ -80,6 +81,7 @@ if [ -n "${SLX_LOGOUT_TIMEOUT}" ] && [ "${SLX_LOGOUT_TIMEOUT}" -gt 0 ]; then
if [ "$IDLE" -lt "$SLX_LOGOUT_TIMEOUT" ]; then
IS_IDLE=no
else
+ date +%s > /run/openslx/session-killed
loginctl terminate-session "$ses"
fi
# end other sessions