From owner-freebsd-questions@FreeBSD.ORG Thu Nov 17 17:51:06 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCF5A16A41F for ; Thu, 17 Nov 2005 17:51:06 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from smtp1.utdallas.edu (smtp1.utdallas.edu [129.110.10.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DC3643D45 for ; Thu, 17 Nov 2005 17:51:06 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from utd59514.utdallas.edu (utd59514.utdallas.edu [129.110.3.28]) by smtp1.utdallas.edu (Postfix) with ESMTP id D3A173890E2; Thu, 17 Nov 2005 11:51:05 -0600 (CST) Date: Thu, 17 Nov 2005 11:51:05 -0600 From: Paul Schmehl To: Gerry Freymann , freebsd-questions@freebsd.org Message-ID: <35C245E548585C532A02D044@utd59514.utdallas.edu> In-Reply-To: <20051117091909.00812699.lists@interpool.ca> References: <000001c5eb7d$240a47a0$d1c88a45@picklepie> <20051117091909.00812699.lists@interpool.ca> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: lonnie@outstep.com Subject: Re: starting services? 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: Thu, 17 Nov 2005 17:51:06 -0000 --On Thursday, November 17, 2005 09:19:09 -0500 Gerry Freymann wrote: > On Thu, 17 Nov 2005 08:45:14 -0500 > "Lonnie Cumberland" wrote: > >> I have just installed the Samba3 via the packages in the >> /stand/sysinstall but am not clear on how to start the daemon. I have >> had a lot of experience with Linux but have not learned a lot about >> FreeBSD yet and am working on it. > > Welcome to FreeBSD. You didn't mention what version you are using, so I > can only speak definitively on v4. > > If you installed via the ports/packages, it should have dropped a start > up script in /usr/local/etc/rc.d (which is where a lot of the start > up/shut down scripts go for various programs). > > You may have something in there called samba.sh.sample. If you copy it or > rename it to samba.sh it will automatically start and stop samba for you > as needed. > Most likely you are going to have to also edit /etc/rc.conf. Look at the script. If it contains instructions to edit /etc/rc.conf, follow them, or you won't be able to start the service. Usually, a startup script will use rc.subr, and it will require an entry in /etc/rc.conf like this; samba_enable="YES" It may also require an entry for any additional flags that you want to use on startup and possibly for the location of the conf file, but all that should be noted in the startup script. Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu/ir/security/