summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xserver/modules/pam-freiburg/opt/openslx/scripts/pam_script_ses_close8
1 files changed, 0 insertions, 8 deletions
diff --git a/server/modules/pam-freiburg/opt/openslx/scripts/pam_script_ses_close b/server/modules/pam-freiburg/opt/openslx/scripts/pam_script_ses_close
index 27620ee0..01d409a1 100755
--- a/server/modules/pam-freiburg/opt/openslx/scripts/pam_script_ses_close
+++ b/server/modules/pam-freiburg/opt/openslx/scripts/pam_script_ses_close
@@ -2,11 +2,3 @@
[ ! -z "$SLX_DEBUG" ] && echo "[$PAM_TYPE] Closing session for $PAM_USER"
-OPENSESSIONS=$(loginctl|grep $PAM_USER|wc -l)
-[ ! -z "$SLX_DEBUG" ] && echo "User $PAM_USER has $OPENSESSIONS open sessions."
-
-if [ "x$OPENSESSIONS" == "x1" ]; then
- # assume its last session, start watchdog in background
- [ ! -z "$SLX_DEBUG" ] && echo "Last session beeing closed..."
- ( while true; do sleep 1; if [ "x$(loginctl |grep $PAM_USER)" == "x" ]; then [ $(id -g $PAM_USER) -ge 1000 ] && umount /home/s8jobaue; fi; done) &
-fi