[users] TightVNC init.d script doesn't pass all arguments to Xvnc

Arturo Diaz Rosemberg arturodr at gmail.com
Tue Apr 8 19:14:14 CEST 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.repoforge.org/pipermail/users/attachments/20080408/0fc5b00f/attachment-0004.html>


More information about the users mailing list