From owner-freebsd-questions Tue Jan 2 17: 7: 2 2001 From owner-freebsd-questions@FreeBSD.ORG Tue Jan 2 17:06:59 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from datasphereweb.com (c182500-a.frndl1.wa.home.com [24.10.46.121]) by hub.freebsd.org (Postfix) with SMTP id A223337B400 for ; Tue, 2 Jan 2001 17:06:59 -0800 (PST) Received: (qmail 51686 invoked by uid 1000); 3 Jan 2001 01:06:57 -0000 Date: Tue, 2 Jan 2001 17:06:57 -0800 From: David To: David Banning Cc: questions@freebsd.org Subject: Re: no samba with inetd start Message-ID: <20010102170656.A49769@datasphereweb.com> References: <20010102195957.A4104@www3.pacific-pages.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010102195957.A4104@www3.pacific-pages.com>; from david@www3.pacific-pages.com on Tue, Jan 02, 2001 at 07:59:58PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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?" Speaking from experience that is :) Anyways, in your /usr/local/etc/rc.d create a samba.sh and put this in it: #!/bin/sh smbspool=/var/spool/samba pidfiledir=/var/run smbd=/usr/local/sbin/smbd nmbd=/usr/local/sbin/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 This works for me. -- |> /\ \/ @ davidd@datasphereweb.com DataSphere - Back end web programming, site security, and networking david.daugherty@netmanage.com Software Engineer NetManage - The Bridge to E-Business http://www.wcug.wwu.edu/~doc ICQ: 21106703 "I like the dreams of the future better than the history of the past" -Thomas Jefferson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message