I have put a script in lts-client chroot:
/usr/share/ldm/rc.d/K20-ltspfs-cleanup

script -c "whoami
ls -l ${LDM_SOCKET}
echo \"LDM_SERVER = ${LDM_SERVER}\"
ssh -X -S ${LDM_SOCKET} ${LDM_SERVER} \"/usr/sbin/ltspfsmounter all cleanup\"
" /tmp/.cleanup.log

The result after logging out from the session:

# cat /tmp/.cleanup.log
Script started on Wed Jan 23 01:24:48 2008
root
srw------- 1 root root 0 Jan 23 01:24 /var/run/ldm_socket_vt5_192.168.3.2
LDM_SERVER = 192.168.3.2
ssh_msg_recv: read: header
control_client: msg_recv

Script done on Wed Jan 23 01:24:49 2008

Why does not it work?
(If I issue the command "ssh -X -S ... all cleanup",
as in the fourth line of the cleanup script, it does its job...)

TIA,
--
Zsolt

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to