From owner-freebsd-questions Wed Oct 27 14: 4: 7 1999 Delivered-To: freebsd-questions@freebsd.org Received: from nisser.com (c1870039.telekabel.chello.nl [212.187.0.39]) by hub.freebsd.org (Postfix) with ESMTP id 1348A14DFC for ; Wed, 27 Oct 1999 14:04:00 -0700 (PDT) (envelope-from roelof@nisser.com) Received: from nisser.com (roelof [10.0.0.2]) by nisser.com (8.9.3/8.9.2) with ESMTP id XAA54365 for ; Wed, 27 Oct 1999 23:08:12 +0200 (CEST) (envelope-from roelof@nisser.com) Message-ID: <381768CD.AA6C03EF@nisser.com> Date: Wed, 27 Oct 1999 23:04:13 +0200 From: Roelof Osinga Organization: eboa - engineering buro Office Automation X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: questions@FreeBSD.ORG Subject: Re: Starting the Samba Service References: <85256816.001EB07E.00@mail.whtz.com> <3815456A.54313A86@lvdi.net> <000601bf1f6b$8dc4a620$0607b084@fernunihagen.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Fritz Heinrichmeyer wrote: > > Install samba from the ports collection or from a precompiled package. > Then you will find /usr/local/etc/rc.d/samba.sh.example. It is an example > startup script. > If you rename it to /usr/local/etc/rc.d/samba.sh, it is fired up on every > reboot. Yeah, but I found I had to change it thus: #!/bin/sh # mutilated from samba.sh.sample 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 Roelof PS I believe it was because the parameters weren't given -- Home is where the (@) http://eboa.com/ is. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message