vnc via xinetd

Dear All,

i am trying to configure vnc service via xinetd but i do not get the right display. But i am able to get right display via direct vnc. here is my /etc/xinetd.d/vnc config file looks like

default: off

description: This serves out a VNC connection which starts at a KDM login \

prompt. This VNC connection has a resolution of 1024x768, 16bit depth.

service vnc1
{
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/X11R6/bin/Xvnc
server_args = :42 -inetd -once -query localhost -geometry 1024x768 -depth 16
type = UNLISTED
port = 5901
}
}

default: off

description: This serves out the vncviewer Java applet for the VNC \

server running on port 5901, (vnc port 1).

service vnchttpd1
{
disable = yes
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/X11R6/bin/vnc_inetd_httpd
server_args = 1024 768 5901
type = UNLISTED
port = 5801
}

Any idea why display is not right?

I see that nobody answered you until now. This may be due to lack of information from your side. E.g. what do you mean by " i do not get the right display". This is veryvague, could be top side down, wrong size, wrong colours, …

Well for one thing the path is /usr/bin/vnc_inetd_httpd. If you had looked in where xinetd writes its errors, you would probably have discovered this.