Bug 84817

Summary: VNC Restart needs pause between Stop and Start
Product: [Retired] Red Hat Linux Reporter: Ronald W. Heiby <rhrhgx56>
Component: vncAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: mitr
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-08-08 14:03:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ronald W. Heiby 2003-02-21 17:07:33 UTC
Description of problem:

When /etc/init.d/vncserver is invoked with "restart" or "condrestart", it runs 
its "stop" procedure and then its "start" procedure. In most init scripts, this 
behavior is fine. However, in the case of vncserver, a directive to shut down 
the vnc server instances might not be instantaneous.

I suggest a "sleep 10" between the "stop" and "start" lines as a quick fix. 
Better might be to explicitly wait for the servers to exit.

How reproducible: Very

Steps to Reproduce:
1. Configure vncserver init script to start a session
2. Connect to that session
3. From another login, invoke /etc/init.d/vncserver restart
4. Observe that although the vnc session goes away, it does not get restarted.
Actual results:

Since the VNC server has not yet completely exited, it appears to already exist 
when the "start" is invoked. Naturally, "start" fails to invoke another 
instance. When the "stopping" instance finally goes away, there is no VNC 
server for the user on that system, until either reboot or other invocation 
of "/etc/init.d/vncserver start".

Expected results:

Existing VNC servers go away. New instances of the configured VNC servers are 

Additional info:

This was observed on a fairly fast P4 system. However, I suspect that the more 
things are running within the VNC session(s), the more likely this result will