From owner-freebsd-questions Sun Jun 18 9: 1:56 2000 Delivered-To: freebsd-questions@freebsd.org Received: from sanson.reyes.somos.net (freyes.static.inch.com [216.223.199.224]) by hub.freebsd.org (Postfix) with ESMTP id 82B1337B6C8 for ; Sun, 18 Jun 2000 09:01:49 -0700 (PDT) (envelope-from fran@reyes.somos.net) Received: from tomasa (tomasa.reyes.somos.net [10.0.0.11]) by sanson.reyes.somos.net (8.9.3/8.9.3) with SMTP id LAA21511; Sun, 18 Jun 2000 11:55:19 -0400 (EDT) (envelope-from fran@reyes.somos.net) Message-Id: <200006181555.LAA21511@sanson.reyes.somos.net> From: "Francisco Reyes" To: "David Daugherty" , "questions@FreeBSD.ORG" Date: Sun, 18 Jun 2000 11:59:55 -0400 Reply-To: "Francisco Reyes" X-Mailer: PMMail 2000 Professional (2.10.2010) For Windows 98 (4.10.2222) In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: starting samba Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 18 Jun 2000 00:16:43 -0700 (PDT), David Daugherty wrote: >Where should I be starting samba from on a 4.0-stable box? I see you got plenty of feedback.. just a few minor additional comments. You may want to consider moving the script that got created in /usr/local/etc/rc.d somewhere in your path and do a link to that directory. This way when you are debugging you can stop/start samba. If you migrated your box from 3.X and you kept samba you may want to consider keeping your smb.conf, deleting samba using pkg_delete and install the new one available in package or port with 4.X. This new Samba, as someone mentioned, has a utility called Swat which greatly simplifies managing Samba. If for any reason you don't have a script in your /rc.d I am attaching mine. This is from a Samba configuration in a 3.X box so I am not sure how well it works in the latest one, but you can use it as a template. I think I modified this a bit from the original one. If no parameter it starts samba. It also takes the "start" and "stop" parameters. #!/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 ' Starting Samba.. ' $smbd -D $nmbd -D echo ' Samba Started ' fi # stop elif [ "x$1" = "xstop" ]; then echo ' Stopping Samba ' kill `cat /var/run/smbd.pid` kill `cat /var/run/nmbd.pid` fi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message