Date: Mon, 06 Aug 2001 18:55:45 -0400 From: "Brian D. McGlothlin" <dskyzd@naxs.net> To: freebsd-questions@freebsd.org Subject: starting vnc via rc.d script Message-ID: <4.3.2.7.0.20010806182345.00acba50@mail.naxs.net>
next in thread | raw e-mail | index | archive | help
I've created a file in /usr/local/etc/rc.d called vnc.sh on my 4.3-RELEASE system. -rwxr-x--x 1 root wheel 363 Aug 6 18:06 vnc.sh I can not get this script to execute at boot time. No errors, just no VNC. './vnc.sh start' and './vnc.sh stop' work perfectly. Other scripts in rc.d such as apache and mysql startup scripts work fine. Here's the file: #!/bin/sh - # # initialization/shutdown script for VNC # bdm 07/19/2001 taken from rc.local man page case "$1" in start) /usr/X11R6/bin/vncserver && echo -n ' VNC Server START' ;; stop) /usr/X11R6/bin/vncserver -kill :1 && echo -n ' VNC Server STOP' ;; *) echo "unknown option: $1 - should be 'start'" >&2 ;; esac Have I missed something obvious? Also, how can I make this execute as a different (nonprivileged) user within rc.d? # # Brian D. McGlothlin # CCNA, CNE, Net+, MCP # mailto:dskyzd@naxs.net # http://www.defaultdeny.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.3.2.7.0.20010806182345.00acba50>