I was wondering if anyone has any ideas.. There's certain users who have a CAM setup that just launches a telnet session inside an xterm. Certain ones load 2 xterm sessions at once. For some reason if you terminate those sessions through the GUI, command line, or kill the X server (Ctrl-Alt-Bkspc *2), the session does not come back. It's ONLY the users who have 2 xterms launching telnet that have this issue.

Doing some testing here, I can reproduce this problem. Here's the CAM users process list before the session is killed:

# ps -eaf | grep utcu0
utcu0 8284 8279 0 15:08:22 ? 0:00 /bin/ksh -p /opt/SUNWbb/bin/bbcontrol 0 utcu0 8324 8306 0 15:08:23 ? 0:00 /bin/sh /opt/IDXcustom/bin/sentai/top
   utcu0  8377  8376   0 15:18:27 pts/4       0:00 /bin/telnet -E bartle
utcu0 8306 8288 0 15:08:22 ? 0:00 /bin/sh /opt/IDXcustom/bin/bng-cam.sh
   utcu0  8369  8368   0 15:18:27 pts/2       0:00 /bin/telnet -E bartle
utcu0 8287 8284 0 15:08:22 ? 0:00 /bin/ksh -p /opt/SUNWbb/bin/bbstartd /var/opt/SUNWbb/root/doors/utcu0 utcu0 8326 8306 0 15:08:23 ? 0:00 /bin/sh /opt/IDXcustom/bin/sentai/bottom utcu0 8368 8324 0 15:18:27 ? 0:00 /usr/openwin/bin/xterm -bg black -fg grey -geom 114x25+0+0 -fn -misc-fixed-medi utcu0 8288 8284 0 15:08:22 ? 0:00 /bin/ksh -p /opt/SUNWut/kiosk/bin/utstartkiosk /var/opt/SUNWbb/root/home/utcu0 utcu0 8376 8326 0 15:18:27 ? 0:00 /usr/openwin/bin/xterm -bg black -fg #FBF7C0 -geom 114x26+0+380 -fn -misc-fixed utcu0 8279 8170 0 15:08:22 ? 0:00 -sh -c BBDISPLAY=edm-sunray:3; export BBDISPL# ps -eaf | grep utcu0 utcu0 8284 8279 0 15:08:22 ? 0:00 /bin/ksh -p /opt/SUNWbb/bin/bbcontrol 0 utcu0 8324 8306 0 15:08:23 ? 0:00 /bin/sh /opt/IDXcustom/bin/sentai/top utcu0 8306 8288 0 15:08:22 ? 0:00 /bin/sh /opt/IDXcustom/bin/bng-cam.sh utcu0 8287 8284 0 15:08:22 ? 0:00 /bin/ksh -p /opt/SUNWbb/bin/bbstartd /var/opt/SUNWbb/root/doors/utcu0 utcu0 8326 8306 0 15:08:23 ? 0:00 /bin/sh /opt/IDXcustom/bin/sentai/bottom utcu0 8453 8324 0 15:20:49 ? 0:00 /usr/openwin/bin/xterm -bg black -fg grey -geom 114x25+0+0 -fn -misc-fixed-medi utcu0 8288 8284 0 15:08:22 ? 0:00 /bin/ksh -p /opt/SUNWut/kiosk/bin/utstartkiosk /var/opt/SUNWbb/root/home/utcu0 utcu0 8454 8326 0 15:20:49 ? 0:00 /usr/openwin/bin/xterm -bg black -fg #FBF7C0 -geom 114x26+0+380 -fn -misc-fixed utcu0 8279 8170 0 15:08:22 ? 0:00 -sh -c BBDISPLAY=edm-sunray:3; export BBDISPLAY; BBAUDIODEV=/tmp/SUNWut/dev/
AY;  BBAUDIODEV=/tmp/SUNWut/dev/


And here it is after the session is terminated:

# ps -eaf | grep utcu0
utcu0 8284 8279 0 15:08:22 ? 0:00 /bin/ksh -p /opt/SUNWbb/bin/bbcontrol 0 utcu0 8324 8306 0 15:08:23 ? 0:00 /bin/sh /opt/IDXcustom/bin/sentai/top utcu0 8306 8288 0 15:08:22 ? 0:00 /bin/sh /opt/IDXcustom/bin/bng-cam.sh utcu0 8287 8284 0 15:08:22 ? 0:00 /bin/ksh -p /opt/SUNWbb/bin/bbstartd /var/opt/SUNWbb/root/doors/utcu0 utcu0 8326 8306 0 15:08:23 ? 0:00 /bin/sh /opt/IDXcustom/bin/sentai/bottom utcu0 8648 8324 0 15:27:17 ? 0:00 /usr/openwin/bin/xterm -bg black -fg grey -geom 114x25+0+0 -fn -misc-fixed-medi utcu0 8288 8284 0 15:08:22 ? 0:00 /bin/ksh -p /opt/SUNWut/kiosk/bin/utstartkiosk /var/opt/SUNWbb/root/home/utcu0 utcu0 8647 8326 0 15:27:17 ? 0:00 /usr/openwin/bin/xterm -bg black -fg #FBF7C0 -geom 114x26+0+380 -fn -misc-fixed utcu0 8279 8170 0 15:08:22 ? 0:00 -sh -c BBDISPLAY=edm-sunray:3; export BBDISPLAY; BBAUDIODEV=/tmp/SUNWut/dev/


If I kill -9 the main CAM script the session does come back. When you kill the X server or terminate the session, shouldn't everything be killed associated with that CAM user?

There's 4 other types of users, and they have no issue. The only thing really different with these types of users is the 'sentai2' part of this CAM script snip:

...
case "$USERMODE" in
        desktop)
                /opt/SUNWut/bin/utswitch -h sunray-2
        ;;
        sentai)
XENVIRONMENT=/opt/IDXcustom/share/Xresources export XENVIRONMENT
                /opt/IDXcustom/bin/sentai/$SCRIPT
        ;;
        sentai2)
XENVIRONMENT=/opt/IDXcustom/share/Xresources export XENVIRONMENT
                /opt/IDXcustom/bin/sentai/top&
                /opt/IDXcustom/bin/sentai/bottom
        ;;
        xterm)
                /usr/openwin/bin/xterm
        ;;
        rdp)
...

The top and bottom scripts just loop through launching an xterm which calls telnet. Only way I could think of a way to do this, but why does it not terminate the main CAM script when you kill the session or X server?

- Trev
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to