Description of problem: When the vncserver init.d script runs with the default configuration as installed, the script fails to start the server, but the message returns "OK" instead of "FAILED" Version-Release number of selected component (if applicable): vnc 4.1.1-10.1 How reproducible: 100% Steps to Reproduce: 1. Comment out any parameters in /etc/sysconfig/vncservers (this is the default installed from rpm) 2. 'service vncservers start' (will say "OK") 3. 'service vncservers status' (will say "Xvnc is stopped") Actual results: see above Expected results: 'service vncservers start' should say "FAILED" Additional info: The problem is that there are no VNCSERVERS defined in /etc/sysconfig/vncservers. One solution is to add a line to /etc/init.d/vncservers just before starting the displays and test to see if any VNCSERVERS are defined: [ "$VNCSERVERS" = "" ] && RETVAL=1 for display in ${VNCSERVERS}
With default cofiguration, no displays will be configured, but vncserver was started with no problems, that's why /etc/init.d/vncserver start says "OK" and /etc/init.d/vncserver status says "Xvnc is stopped". Now /etc/init.d/vncserver start will say Starting VNC server:no displays configured [ OK ]
IMO, if the service fails to properly start (for any reason, "no displays configured" or otherwise), it should *not* report [ OK ].