Hi all,
I was having some trouble getting TightVNC to listen to other port, turns
out that the init.d script wasn't using the arguments defined on the
/etc/sysconfig/vncservers file.
The problem was solved adding ${VNCSERVERARGS[${display%:*}]} at the end of
the initlog line on the start function:
--- vncserver 2008-04-08 11:57:04.000000000 -0500
+++ /etc/init.d/vncserver 2008-04-08 12:05:10.000000000 -0500
@@ -35,7 +35,7 @@ start() {
echo -n "${display} "
unset BASH_ENV ENV
initlog $INITLOG_ARGS -c \
- "su ${display##*:} -c \"cd ~${display##*:} && [ -f .vnc/passwd
] && vncserver :${display%:*}\""
+ "su ${display##*:} -c \"cd ~${display##*:} && [ -f .vnc/passwd
] && vncserver :${display%:*} ${VNCSERVERARGS[${display%:*}]}\""
RETVAL=$?
[ "$RETVAL" -ne 0 ] && break
done
Regards,
--
Arturo Díaz Rosemberg
_______________________________________________
users mailing list
[email protected]
http://lists.rpmforge.net/mailman/listinfo/users