Reconnecting after timeout
Joe Byers
joe_w_byers "at" yahoo.com
Tue Apr 10 12:38:01 2007
I am running vnc enterprise on a redhat linux EL4 server. I have the connections running through xinetd. This works great but for one problem.
Periodically I will have a vnc client connected and allow it to timeout. When I try and reconnect, I get the message, "user already logged in" with the options to "log in anyway" or "abort". I select "log in anyway" and my vnc client dies. My vnc xinetd settings are
service vncuser
{
protocol = tcp
socket_type = stream
wait = no
user = vncuser
server = /usr/bin/Xvnc
server_args = -inetd -query localhost -desktop vncuser:5902 -once -geo
metry 1280x1016 -IdleTimeout=0 -depth 16 -SecurityTypes=none -UserPasswdVerifier
=none -auth /home/vncuser/.Xauthority
log_on_failure += USERID ATTEMPT
}
I have to ssh in under a different user, kill the xvnc jobs for vncuse, delete the x11 hooks/locks in /tmp and /tmp/.X11 before I can reconnect through my vnc client. Does anyone have any suggestions how I can get xinetd to kill the xvnc program on timeout or do you know an additional setting I can make in my xinetd script to take care of this?
Thank you
Joe