From owner-freebsd-questions@FreeBSD.ORG Fri Jun 15 07:51:22 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A5DB816A400 for ; Fri, 15 Jun 2007 07:51:22 +0000 (UTC) (envelope-from jonathan@hst.org.za) Received: from sirian.hst.org.za (sirian.hst.org.za [209.203.2.130]) by mx1.freebsd.org (Postfix) with ESMTP id 3504A13C46E for ; Fri, 15 Jun 2007 07:51:22 +0000 (UTC) (envelope-from jonathan@hst.org.za) Received: from localhost (localhost.hst.org.za [127.0.0.1]) by sirian.hst.org.za (Postfix) with ESMTP id BA01031DB4D; Fri, 15 Jun 2007 09:52:05 +0200 (SAST) Received: from sirian.hst.org.za ([127.0.0.1]) by localhost (sirian.hst.org.za [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 44017-01; Fri, 15 Jun 2007 09:52:05 +0200 (SAST) Received: from sysadmin.hst.org.za (sysadmin.int.dbn.hst.org.za [10.1.1.20]) by sirian.hst.org.za (Postfix) with ESMTP id 06DB731DB2B; Fri, 15 Jun 2007 09:52:05 +0200 (SAST) From: Jonathan McKeown Organization: Health Systems Trust To: freebsd-questions@freebsd.org Date: Fri, 15 Jun 2007 09:55:12 +0200 User-Agent: KMail/1.7.2 References: <340a29540706140802g662c38cepae1b597f18ebc020@mail.gmail.com> <46716E83.5020904@cs.okstate.edu> <340a29540706140951v58c6b039ve04089f9580718a7@mail.gmail.com> In-Reply-To: <340a29540706140951v58c6b039ve04089f9580718a7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706150955.13301.jonathan@hst.org.za> X-Virus-Scanned: by amavisd-new at hst.org.za Cc: Andrew Falanga Subject: Re: samba config problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2007 07:51:22 -0000 On Thursday 14 June 2007 18:51, Andrew Falanga wrote: > On 6/14/07, Reid Linnemann wrote: > > Don't forget to cc: freebsd-questions@freebsd.org > > Once again I apologize to the forum. I keep forgetting to do this. > > > The rc script at /usr/local/etc/rc.d/samba follows the FreeBSD rcng > > scheme, if the rcvar 'samba_enable' is not set to 'yes', then the script > > will not start or stop the samba process. > > > > Run the script without any commands to see usage. To check the status of > > rcvars that control the script's behavior, run the script with the > > 'rcvar' argument; e.g. > > > > ~/> /usr/local/etc/rc.d/samba rcvar > > # samba > > $samba_enable=YES > > # nmbd > > $nmbd_enable=YES > > # smbd > > $smbd_enable=YES > > # winbindd > > $winbindd_enable=NO > > > > Note that nothign is stopping you from running smbd and nmbd manually, > > the rc control script simply automates the control of the daemon for you. > > Ah, thank you. Very enlightening. I guess I'll have to read through > that section of the Handbook to make sure I understand how all that > works together. I finally did get it working by starting the smbd > "manually." > > Thanks, > Andy Just to add to this: if you want to start the service as a one-off without putting the enabling variable in /etc/rc.conf, use onestart instead of start (this also works with stop|onestop and status|onestatus). Jonathan