troubles with ltsp-localappsd

Vagrant Cascadian <[email protected]>
Newsgroups gmane.linux.terminal-server.devel
Message-ID <[email protected]>
i seem to be having issues with the code that runs ltsp-localappsd (from
/usr/share/ldm/rc.d/S01-localapps):

    #Launch the ltsp-localappsd to handle the apps
    (
    echo $! > $LOCALAPPSD_PIDFILE

    # if cups is installed in the chroot, use LDM_SERVER for printing
    [ -d "/etc/cups" ] && echo "ServerName ${LDM_SERVER}" > /etc/cups/client.conf

    ltsp-localappsd

    # Clean up localapps menu
    if boolean_is_true "$LOCAL_APPS_MENU"; then
        [ -x "/usr/bin/ltsp-genmenu" ] && su - ${LDM_USERNAME} -c "/usr/bin/ltsp-genmenu remove"
    fi

    # Clean up cups config
    [ -r "/etc/cups/client.conf" ] && rm -f /etc/cups/client.conf

    # Copy back passwd and group
    for i in passwd group; do
        cp "${LOCALAPPS_CACHE}/${i}" /etc/${i}
    done

    # Unmount sshfs and remove the mount dir
    fusermount -uqz ${LDM_HOME}
    rmdir ${LDM_HOME}
    rm $LOCALAPPSD_PIDFILE
    )&

the LOCALAPPS_PIDFILE doesn't get created without adding:

  mkdir -p $(dirname $LOCALAPPSD_PIDFILE)

and the pid it generates is actually for ldm-script ... so i'm not sure it's
even the right PID anyways.

but the big problem is that all the code after "ltsp-localappsd" as best
i can tell, is never run. i even put an "date >> /tmp/foobar"
immediately after ltsp-localappsd, but it never executes.

i tweaked the code in ltsp-localappsd a little to get more debugging out of it,
and it seems that the call to xatomwait never returns non-zero:

  # Poll for LTSP_COMMAND changes and execute
  while :; do
      LTSP_COMMAND="$(xatomwait LTSP_COMMAND)"
      [ "$?" != 0 ] && exit

i rewrote it also to output something when xatomwait returns non-zero, but it
never happens. but strangely, ltsp-localappsd does in fact exit; the process
stops running. i just can't figure out how, that's the only exit call and it's
in an infinite loop otherwise...

i'm stumped.

live well,
  vagrant

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.