From owner-freebsd-questions@FreeBSD.ORG Sun Nov 20 22:11:11 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 6A3A716A41F for ; Sun, 20 Nov 2005 22:11:11 +0000 (GMT) (envelope-from gerard@seibercom.net) Received: from smtp5.suscom.net (smtp5.suscom.net [64.78.83.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id 193BD43D5E for ; Sun, 20 Nov 2005 22:11:08 +0000 (GMT) (envelope-from gerard@seibercom.net) Received: from localhost (unknown [127.0.0.1]) by smtp5.suscom.net (Postfix) with ESMTP id 337AF5100F8 for ; Sun, 20 Nov 2005 17:11:06 -0500 (EST) Received: from smtp5.suscom.net ([127.0.0.1]) by localhost (smtp5 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31059-01-87 for ; Sun, 20 Nov 2005 17:11:02 -0500 (EST) Received: from seibercom.net (ip148.217.susc.suscom.net [216.45.217.148]) by smtp5.suscom.net (Postfix) with SMTP id 6B56E5100F9 for ; Sun, 20 Nov 2005 17:11:02 -0500 (EST) Received: from [192.168.0.2] (//gerard [192.168.0.2]) by seibercom.net (8.13.4/8.13.4) with ESMTP id jAKMB2Dr043328 for ; Sun, 20 Nov 2005 17:11:03 -0500 (EST) (envelope-from gerard@seibercom.net) Date: Sun, 20 Nov 2005 17:11:04 -0500 From: Gerard Seibert To: freebsd-questions@freebsd.org Sender: gerard@seibercom.net Organization: Seibercom.net In-Reply-To: References: <20051117091909.00812699.lists@interpool.ca> X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR nSNPNr*/^~StawWU9KDJ-CT0k$f#@t2^K&BS_f|?ZV/.7Q Message-Id: <20051120170734.D896.GERARD@seibercom.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Mailer: Becky! ver. 2.22.02 [en] X-Virus-Scanned: by amavisd-new .250 at suscom.net Subject: Re[2]: starting services? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Nov 2005 22:11:11 -0000 On Friday, November 18, 2005 3:15:25 PM, martinko Subject: Re: starting services? Wrote these words of wisdom: > 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. > > > > If you manually want to do this, you *must* use the full path to the > > script: > > > > /usr/local/etc/rc.d/samba.sh start | stop > > > > You should find what you need in /usr/local/etc/rc.d > > > > > i wonder why i cannot start for instance ssh with > /etc/rc.d/sshd start > but i always have to use > /etc/rc.d/sshd forcestart > and similarly for stop, status, etc. > > any ideas pls ?? > > cheers, > > martin ***** REPLY SEPARATOR ***** On 10/11/2005 5:29:42 PM, Gerard Replied: You need the following directives in the /etc/rc.conf file. samba_enable="YES" sshd_enable="YES" Now, reboot the machine and both services should start up. You will see a message displayed as they are started.