problem starting vncserver on boot.

Justin Burgess jburges2@twcny.rr.com
Sat Apr 26 21:15:01 2003


I am attempting to load vcnserver on boot-up, but I am getting the
following error:

Starting vncserver:  S98vncserver: couldn't find "Xvnc" on your PATH.
                                                           [FAILED]

Below is my script I created:

#!/bin/sh
#
#Vncserver      start/stop the vncserver service
#
#description: Vncserver allows access to the machine running the process
via a VNC viewer program so
#             that the machine can be controlled remotely.
#processname: vncserver

#Source function library.
. /etc/rc.d/init.d/functions

[ -f /root/.vnc/vncserver ] || exit 0

# See how we were called.
case "$1" in
 start)
        echo -n "Initializing Vncserver: "
        daemon vncserver

        echo
        touch /var/lock/subsys/vncserver
        ;;
 stop)
        echo -n "Stopping Vncserver Services: "
        killproc vncserver

        echo
        rm -f /var/lock/subsys/vncserver
        ;;
 status)
        status vncserver
        ;;
 restart|reload)
        $0 stop
        $0 start
        ;;
 *)
        echo "Usage: vncserver start|stop|status|restart|reload"
        exit 1
esac

exit 0


Thank you in advance for any help you can give me. I have been ripping
my hair out! By the way my VNC files are locate in /root/.vnc . I copied
the vncserver file over to the /etc/rc.d/init.d folder, and it still
didn't help.

Justin Burgess