From owner-freebsd-questions Tue Oct 22 19:22: 4 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0E9337B401 for ; Tue, 22 Oct 2002 19:22:01 -0700 (PDT) Received: from mail.gbronline.com (mail.gbronline.com [12.145.226.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1F9F43E42 for ; Tue, 22 Oct 2002 19:21:56 -0700 (PDT) (envelope-from daleco@daleco.biz) Received: from DaleCoportable [12.145.226.227] by mail.gbronline.com (SMTPD32-7.13) id A75B18C01F2; Tue, 22 Oct 2002 21:20:11 -0500 Message-ID: <083101c27a3a$2840c360$fa00a8c0@DaleCoportable> From: "Help Desk" To: , References: <001401c27a2f$21d78820$0a00a8c0@papabear> Subject: Re: Shlight help plz Date: Tue, 22 Oct 2002 21:16:10 -0500 Organization: DaleCo, S.P.---"the solutions people" MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 From: "RD" To: Sent: Tuesday, October 22, 2002 7:57 PM Subject: Shlight help plz > Hi guys, > > I'm having some trouble here. I'm sorda a noob to unix, so plz bare > with me J > > I've searched all the shlight list archives > > I found the startup shel script > > #!/bin/sh > > case "$1" in > > 'start') > > /usr/local/sbin/shlight //papabear/myftp /usr/FTP -w -P > ou812ou812 > > ;; > > > 'stop') > > # Trivial (you may be able to produce something less > > # hamfisted than this) stop script: > > /usr/bin/killall shlight > > ;; > > > > *) > > echo "Usage: $0 { start | stop }" > > exit 1 > > ;; > > esac > > exit 0 Which I assume is located as follows: /usr/local/sbin/slight ?? > > I'm getting an error ( local package initialization : Samba/etc/rc: > /usr/local/etc/rc.d/shlight.sh: not found ? > So, the Samba startup script can't find the shlight startup script because it's looking for /usr/local/etc/rc.d/shlight.sh > Is this because samba needs 30 seconds or so to settle maybe? > > I can't access my smb shares from w32 for a few seconds after login > prompt. > > I can login and run the shlight command and it mounts ok without error, > so I'm wondering if > > I need to make the shlight startup sleep or something for a certain > amount of time maybe ? > > Methinks in light of the notes above, you have 3-4 options: 1. Reinstall shlight with a different installdir. (Ouch!) 2. cp /usr/local/bin/shlight to /usr/local/etc/rc.d/ (or whatever that said up there...) 3. #cd /usr/local/etc/rc.d/ # ln -s /usr/bin/slight ./slight 4. Change the Samba rc script to use the correct path. Your guess is good as mine as to which is better. What you've found, I guess, is that some folks run more like to Linux/GNU than BSD/tradish when writing makefiles. It's something that keeps life interesting :-) > Tx in advance > > RD > HTH, Kevin Kinsey To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message