From owner-freebsd-questions Fri Jan 5 13: 3:48 2001 From owner-freebsd-questions@FreeBSD.ORG Fri Jan 5 13:03:37 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from www3.pacific-pages.com (www3.pacific-pages.com [192.41.48.219]) by hub.freebsd.org (Postfix) with ESMTP id 7538737B6B4 for ; Fri, 5 Jan 2001 13:03:36 -0800 (PST) Received: from d.tracker ([216.191.73.235]) by www3.pacific-pages.com (8.8.5) id OAA02361; Fri, 5 Jan 2001 14:03:02 -0700 (MST) Received: (from david@localhost) by d.tracker (8.9.3/8.9.3) id QAA56750; Fri, 5 Jan 2001 16:02:32 -0500 (EST) (envelope-from david) Date: Fri, 5 Jan 2001 16:01:11 -0500 From: David Banning To: Lanny Baron Cc: David , questions@FreeBSD.ORG Subject: Re: no samba with inetd start Message-ID: <20010105160111.B56360@www3.pacific-pages.com> Reply-To: David Banning References: <20010102195957.A4104@www3.pacific-pages.com> <20010102170656.A49769@datasphereweb.com> <20010103013318.A7718@www3.pacific-pages.com> <20010103173655.A59500@panda.FreeBSDsystems.COM> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010103173655.A59500@panda.FreeBSDsystems.COM>; from lnb@panda.FreeBSDsystems.COM on Wed, Jan 03, 2001 at 05:36:55PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jan 03, 2001 at 05:36:55PM -0500, Lanny Baron wrote: Thanks Lanny. That works, I know. But I'm wondering then, how do the entries in inetd.conf come in to play? The entries; netbios-ssn stream tcp nowait root /usr/local/sbin/sbbd smbd netbios-ns dgram udp wait root /usr/local/sbin/nmbd nmbd are shown both in "The Complete FreeBSD" Handbook and in http://www.freebsddiary.org/samba.html Any ideas? > Hi, > Ultimately, you want to start 'mbd' at boot time. Put the following in /usr/local/etc/rc.d as samba.sh: > #!/bin/sh > smbspool=/var/spool/samba > pidfiledir=/var/run > smbd=/usr/local/samba/bin/smbd > nmbd=/usr/local/samba/bin/nmbd > > # start > if [ "x$1" = "x" -o "x$1" = "xstart" ]; then > if [ -f $smbd ]; then > if [ -d $smbspool ]; then > rm -f $smbspool/* > fi > echo -n ' Samba' > $smbd -D > $nmbd -D > fi > > # stop > elif [ "x$1" = "xstop" ]; then > kill `cat $pidfiledir/smbd.pid` > kill `cat $pidfiledir/nmbd.pid` > fi > > To be clear, if you copy the above it should be in a file with the path being: > /usr/local/etc/rc.d/samba.sh > > make sure to chmod 755 samba.sh > > Hope that helps you out. > > Lanny Baron > > On Wed, Jan 03, 2001 at 01:33:18AM -0500, David Banning wrote: > > On Tue, Jan 02, 2001 at 05:06:57PM -0800, David wrote: > > > On Tue, Jan 02, 2001 at 07:59:58PM -0500, David Banning wrote: > > > > I have recently installed samba. I seems to run fine > > > > when I run from the shell; > > > > > > > > $ smbd -D > > > > $ nmbd -D > > > > > > > > but when I run it by commenting out the entries in inetd.conf; > > > > > > > > netbios-ssn stream tcp nowait root /usr/local/sbin/sbbd smbd > > > > netbios-ns dgram udp wait root /usr/local/sbin/nmbd nmbd > > > > > > > > it won't run; > > > > > > > > any idea why? > > > > > > I can't give you a reason why other then say "it won't work that way?" > > > > The only reason I had the belief that it would work that way was this tutorial, > > which, other than this problem I brought forward, seemed to work great for me. > > The tutorial shows both ways of running samba, but kind of suggests > > that the *right* way is through inetd. > > > > http://www.freebsddiary.org/samba.html > > > > Anyway I will run it from rc.d as you suggest. Thanks. > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > -- > ------------------------------------- > Lanny Baron > Proud to be 100% FreeBSD > FreeBSD Systems, Inc; Freedom Technologies Corp. > http://www.FreeBSDsystems.COM > 1.877.963.1900 > > -- Never be led astray onto the path of virtue. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message