Pizza
07-09-2001, 01:52 PM
well the problem is the following:
I want to startup VNC on boot
i boot in level 3
so what i did
i used this script in /etc/init.d
#!/bin/sh
#
# Startup script for VNC Server
#
# Source function library..
/etc/rc.d/init.d/functions
# See how we were called.
case "$1" in
start)
echo -n "Starting VNC: "
vncserver
echo
;;
stop)
echo -n "Shutting down VNC: "
killall Xvnc
echo
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
i called it vncserver and Chmod it to 755
then i went to rc3.d
and made a link to vncserver
with this command
ln -s ../init.d/vncserver /etc/rc.d/rc3.d/S99vncserver
i thought it would work now. NO WAY!!!!
when booting it gives the VNCSERVER [OK] line
but it gives ok inmediatly.
what i think is that it doesn't give the script the time to start vnc. (startinf vnc ussually takes a few sec.)
when i run the script manualy vnc starts just fine.
iam using RH 7.1
anyone have a idea??
i run out
I want to startup VNC on boot
i boot in level 3
so what i did
i used this script in /etc/init.d
#!/bin/sh
#
# Startup script for VNC Server
#
# Source function library..
/etc/rc.d/init.d/functions
# See how we were called.
case "$1" in
start)
echo -n "Starting VNC: "
vncserver
echo
;;
stop)
echo -n "Shutting down VNC: "
killall Xvnc
echo
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
i called it vncserver and Chmod it to 755
then i went to rc3.d
and made a link to vncserver
with this command
ln -s ../init.d/vncserver /etc/rc.d/rc3.d/S99vncserver
i thought it would work now. NO WAY!!!!
when booting it gives the VNCSERVER [OK] line
but it gives ok inmediatly.
what i think is that it doesn't give the script the time to start vnc. (startinf vnc ussually takes a few sec.)
when i run the script manualy vnc starts just fine.
iam using RH 7.1
anyone have a idea??
i run out