Bug 139704

Summary: rhgb prevents vncserver service from starting
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: rhgbAssignee: Daniel Veillard <veillard>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: barryn
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-30 14:48:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tim Waugh 2004-11-17 16:59:13 UTC
User-Agent:       
Build Identifier: 

If a vncserver is configured on :1 in /etc/sysconfig/vncservers, RHGB prevents
it from starting because it occupies that display number while the vncserver
initscript runs.

You could do something like the following to figure out the lowest free display
for RHGB to use:

declare -a displays
for n in $VNCSERVERS
do
  displays[${n%:*}]=${n#*:}
done
for n in $(seq 1 99)
do
  if [ -z "${displays[$n]}" ]
  then
    echo $n
    break
  fi
done


Reproducible: Always
Steps to Reproduce:
1. Put VNCSERVERS="1:root" in /etc/sysconfig/vncservers
2. Boot with 'rhgb' on the command line

Actual Results:  
No VNC session on display :1.

Expected Results:  
Root's VNC session on display :1.

Comment 1 Daniel Veillard 2004-11-30 14:48:07 UTC
Considered fixed in 0.16.1 pushed as an errata, it now uses display :9 

Daniel