Processed: Re: Bug#701916: Kill local user processes on logout
Processing commands for cont...@bugs.debian.org: > tags 701916 +moreinfo Bug #701916 [ltsp-client-core] Kill local user processes on logout Added tag(s) moreinfo. > thanks Stopping processing here. Please contact me if you need assistance. -- 701916: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701916 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#701916: Kill local user processes on logout
Control: tags 701916 -pending +unreproducible I'm having trouble reproducing the problem on a fatclient... I've tried with icewm, LXDE, XFCE and GNOME, with a variety of applications open. None seem to linger after logout as a fatclient, and the homedir gets unmounted appropriately... Also tried with localapps, but couldn't reproduce the problem. Please provide more information about how to reproduce the problem when you get a chance! live well, vagrant -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Processed: Re: Bug#701916: Kill local user processes on logout
Processing control commands: > tags 701916 -pending +unreproducible Bug #701916 [ltsp-client-core] Kill local user processes on logout Removed tag(s) pending. Bug #701916 [ltsp-client-core] Kill local user processes on logout Added tag(s) unreproducible. -- 701916: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701916 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#701916: Kill local user processes on logout
Control: tags 701916 pending Control: tags 700881 pending Committed the following to the ltsp-debian-packaging bzr branch: diff -Nru ltsp-5.4.2/debian/changelog ltsp-5.4.2/debian/changelog --- ltsp-5.4.2/debian/changelog 2013-01-08 22:01:18.0 -0800 +++ ltsp-5.4.2/debian/changelog 2013-02-28 17:46:18.0 -0800 @@ -1,3 +1,15 @@ +ltsp (5.4.2-6) UNRELEASED; urgency=low + + * Add patch to run jetpipe from ltsp-client-core init script rather than +init-ltsp.d hook (Closes: #700881). Running from init-ltsp.d is far too +early in the boot process and causes daemonization to fail, which stops +boot from continuing. Thanks to James McQuillan for the report. + * Avoid data loss with fatclients or localapps by killing local user +processes at end of session (LP: #1093144, Closes: #701916). +Thanks to Alkis Georgopoulos for the patch! + + -- Vagrant Cascadian Mon, 18 Feb 2013 13:50:35 -0800 + ltsp (5.4.2-5) unstable; urgency=low * ltsp-client-core: Depend on initramfs-tools 0.99, to ensure /run is diff -Nru ltsp-5.4.2/debian/patches/jetpipe-from-ltsp-client-core-init-script ltsp-5.4.2/debian/patches/jetpipe-from-ltsp-client-core-init-script --- ltsp-5.4.2/debian/patches/jetpipe-from-ltsp-client-core-init-script 1969-12-31 16:00:00.0 -0800 +++ ltsp-5.4.2/debian/patches/jetpipe-from-ltsp-client-core-init-script 2013-02-18 14:14:37.0 -0800 @@ -0,0 +1,82 @@ +Author: Vagrant Cascadian +Bug-Debian: http://bugs.debian.org/700881 +Upstream-Bug: https://bugs.launchpad.net/ltsp/+bug/996533 + +Start jetpipe from ltsp-client-core init script, as it fails to daemonize when +executed from init-ltsp.d, which is run before /sbin/init is started. + +Index: ltsp-5.4.2/client/initscripts/ltsp-core +=== +--- ltsp-5.4.2.orig/client/initscripts/ltsp-core 2013-02-18 14:07:20.509826079 -0800 ltsp-5.4.2/client/initscripts/ltsp-core2013-02-18 14:07:25.593851287 -0800 +@@ -35,6 +35,33 @@ + . /lib/lsb/init-functions + . /usr/share/ltsp/ltsp-init-common + ++start_printers() { ++for I in 0 1 2; do ++eval PRINTER_DEVICE=\$\{PRINTER_${I}_DEVICE\} ++if [ -n "${PRINTER_DEVICE}" ]; then ++eval PORT=\$\{PRINTER_${I}_PORT:="910${I}"\} ++eval BAUD=\$\{PRINTER_${I}_SPEED:-"9600"\} ++eval SIZE=\$\{PRINTER_${I}_DATABITS:-"8"\} ++eval PARITY=\$\{PRINTER_${I}_PARITY:-"none"\} ++eval FLOW=\$\{PRINTER_${I}_FLOWCTRL:-"soft"\} ++ ++JETPIPE_ARGS= ++[ -n "$BAUD" ] && JETPIPE_ARGS="${JETPIPE_ARGS} -b ${BAUD}" ++[ -n "$SIZE" ] && JETPIPE_ARGS="${JETPIPE_ARGS} -y ${SIZE}" ++[ -n "$PARITY" ] && JETPIPE_ARGS="${JETPIPE_ARGS} -p ${PARITY}" ++if [ -n "$FLOW" ]; then ++if [ "$FLOW" = "soft" ]; then ++JETPIPE_ARGS="${JETPIPE_ARGS} -x" ++else ++JETPIPE_ARGS="${JETPIPE_ARGS} -r" ++fi ++fi ++ ++/usr/sbin/jetpipe ${JETPIPE_ARGS} ${PRINTER_DEVICE} ${PORT} ++fi ++done ++} ++ + case "$1" in + start) + log_action_begin_msg "Starting LTSP client..." +@@ -48,6 +75,7 @@ + /bin/plymouth quit --retain-splash + fi + ++start_printers || true + start_screen_sessions || true + start_sound || true + +Index: ltsp-5.4.2/client/share/ltsp/init-ltsp.d/50-jetpipe +=== +--- ltsp-5.4.2.orig/client/share/ltsp/init-ltsp.d/50-jetpipe 2013-02-18 14:07:20.509826079 -0800 /dev/null 1970-01-01 00:00:00.0 + +@@ -1,24 +0,0 @@ +-for I in 0 1 2; do +-eval PRINTER_DEVICE=\$\{PRINTER_${I}_DEVICE\} +-if [ -n "${PRINTER_DEVICE}" ]; then +-eval PORT=\$\{PRINTER_${I}_PORT:="910${I}"\} +-eval BAUD=\$\{PRINTER_${I}_SPEED:-"9600"\} +-eval SIZE=\$\{PRINTER_${I}_DATABITS:-"8"\} +-eval PARITY=\$\{PRINTER_${I}_PARITY:-"none"\} +-eval FLOW=\$\{PRINTER_${I}_FLOWCTRL:-"soft"\} +- +-JETPIPE_ARGS= +-[ -n "$BAUD" ] && JETPIPE_ARGS="${JETPIPE_ARGS} -b ${BAUD}" +-[ -n "$SIZE" ] && JETPIPE_ARGS="${JETPIPE_ARGS} -y ${SIZE}" +-[ -n "$PARITY" ] && JETPIPE_ARGS="${JETPIPE_ARGS} -p ${PARITY}" +-if [ -n "$FLOW" ]; then +-if [ "$FLOW" = "soft" ]; then +-JETPIPE_ARGS="${JETPIPE_ARGS} -x" +-else +-JETPIPE_ARGS="${JETPIPE_ARGS} -r" +-fi +-fi +- +-/usr/sbin/jetpipe ${JETPIPE_ARGS} ${PRINTER_DEVICE} ${PORT} +-fi +-done diff -Nru ltsp-5.4.2/debian/patches/kill-local-processes ltsp-5.4.2/debian/patches/kill-local-processes --- ltsp-5.4.2/debian/patches/kill-local-processes 1969-12-31 16:00:00.0 -0800 +++ ltsp-5.4.2/debian/patches/kill-local-processes 2013-02-28 17:19:10.0 -0800 @@ -0,0 +1,53 @@ + 2462 Alkis Georgopoulos 2013-02-27 + revision-id:alk...@gmail.com-20130227
Processed: Re: Bug#701916: Kill local user processes on logout
Processing control commands: > tags 701916 pending Bug #701916 [ltsp-client-core] Kill local user processes on logout Ignoring request to alter tags of bug #701916 to the same tags previously set > tags 700881 pending Bug #700881 [ltsp-client-core] ltsp-client-core: thin client can't boot if it has set PRINTER_0_DEVICE in lts.conf Ignoring request to alter tags of bug #700881 to the same tags previously set -- 700881: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700881 701916: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701916 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Processed: Re: Bug#701916: Kill local user processes on logout
Processing control commands: > tags 701916 pending Bug #701916 [ltsp-client-core] Kill local user processes on logout Added tag(s) pending. > tags 700881 pending Bug #700881 [ltsp-client-core] ltsp-client-core: thin client can't boot if it has set PRINTER_0_DEVICE in lts.conf Added tag(s) pending. -- 700881: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700881 701916: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701916 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#701916: Kill local user processes on logout
Package: ltsp-client-core Version: 5.4.2-5 Severity: grave Tags: patch upstream LTSP fat clients and also thin clients that use localapps, mount /home/username with SSHFS and unmount it on logout. Unfortunately at the point where the unmount happens, local processes are still running, and when Xorg killed them later on, they end up writing their data to the local tmpfs filesystem because the SSHFS mount is no longer there. That's one reason for data loss (hence the grave severity), but there's another, worse one: On the next login of the same user, /home/username/ exist locally on the tmpfs, so the LTSP code thinks that the sysadmin has taken care to mount the user home dirs via other means (e.g. NFS), so the SSHFS mount is no longer needed. Thus, all user sessions after the first one, use a local tmpfs /home/username. Users don't see their existing documents or settings, and any new document they write, will be saved in the local tmpfs and lost on client reboot. Here's the upstream bug report: https://bugs.launchpad.net/ltsp/+bug/1093144 And the patch: http://bazaar.launchpad.net/~ltsp-upstream/ltsp/ltsp-trunk/revision/2462 Only one file needs to be patched, client/localapps/ldm-rc.d/X99-zlocalapps-cleanup. -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org