diff options
author | Simon Rettberg | 2018-03-22 11:31:53 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-03-22 11:31:53 +0100 |
commit | dd164df671b5b9a486746c4f33591ceef5c4bed5 (patch) | |
tree | a71a5004a08f6b535531939d9ccbf48ef77c3ef3 | |
parent | [vmchooser2] When autologin is enabled, delay startup if needed to prevent OOM (diff) | |
download | mltk-dd164df671b5b9a486746c4f33591ceef5c4bed5.tar.gz mltk-dd164df671b5b9a486746c4f33591ceef5c4bed5.tar.xz mltk-dd164df671b5b9a486746c4f33591ceef5c4bed5.zip |
Forgot fith fcript
-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 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 |