From owner-freebsd-questions Mon Aug 6 15:56: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailrtr02.ntelos.net (mailrtr02.ntelos.net [216.12.0.102]) by hub.freebsd.org (Postfix) with ESMTP id 524A337B403 for ; Mon, 6 Aug 2001 15:56:04 -0700 (PDT) (envelope-from dskyzd@naxs.net) Received: from grendel.naxs.net (4-17-8-74.mtinter.net [4.17.8.74]) by mailrtr02.ntelos.net (8.11.4/8.11.4) with ESMTP id f76Mu2L19804 for ; Mon, 6 Aug 2001 18:56:02 -0400 Message-Id: <4.3.2.7.0.20010806182345.00acba50@mail.naxs.net> X-Sender: dskyzd@mail.naxs.net X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Mon, 06 Aug 2001 18:55:45 -0400 To: freebsd-questions@freebsd.org From: "Brian D. McGlothlin" Subject: starting vnc via rc.d script Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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