Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Nov 2005 17:11:04 -0500
From:      Gerard Seibert <gerard@seibercom.net>
To:        freebsd-questions@freebsd.org
Subject:   Re[2]: starting services?
Message-ID:  <20051120170734.D896.GERARD@seibercom.net>
In-Reply-To: <dllcot$4ca$1@sea.gmane.org>
References:  <20051117091909.00812699.lists@interpool.ca> <dllcot$4ca$1@sea.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, November 18, 2005 3:15:25 PM, martinko <martinkov@pobox.sk>
Subject: Re: starting services?
Wrote these words of wisdom:

> Gerry Freymann wrote:
> > On Thu, 17 Nov 2005 08:45:14 -0500
> > "Lonnie Cumberland" <lonnie@outstep.com> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051120170734.D896.GERARD>