File: K98-force-logout

package info (click to toggle)
ldm 2:2.0.6-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,012 kB
  • ctags: 144
  • sloc: sh: 3,813; ansic: 1,648; makefile: 105; sed: 16
file content (10 lines) | stat: -rw-r--r-- 344 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
# handle logout cleanly, so that pam logout sessions are properly registered.
# may only work with version openssh-server 5.1+
# http://bugs.debian.org/471793

. /usr/share/ltsp/ltsp-common-functions

if ! boolean_is_true "$LDM_FORCE_LOGOUT"; then
    # request the ssh master socket to close
    ssh -O exit -S ${LDM_SOCKET} ${LDM_SERVER} 
fi