Date: Sun, 18 Jun 2000 11:59:55 -0400 From: "Francisco Reyes" <fran@reyes.somos.net> To: "David Daugherty" <doc@wcug.wwu.edu>, "questions@FreeBSD.ORG" <questions@FreeBSD.ORG> Subject: Re: starting samba Message-ID: <200006181555.LAA21511@sanson.reyes.somos.net> In-Reply-To: <Pine.LNX.3.96.1000618001018.4746A-100000@sloth>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006181555.LAA21511>