starting services?

martinko martinkov at pobox.sk
Mon Nov 21 15:30:38 GMT 2005


On Mon, 21 Nov 2005 14:22:19 +0000, Halldor R. Haflidason wrote
> On Monday, 21 November 2005 at 15:11:35 +0100, martinko wrote:
> > On Mon, 21 Nov 2005 10:17:01 +0800, Foo Ji-Haw wrote
> > > > 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 ??
> > > You have to add a line in /etc/rc.conf. I think it is 
> > > samba_enable="YES".
> > 
> > 
> > well, if you add sshd_enable="YES", the service (always) starts on boot.
> > 
> > i just want to start it manually and i wonder why it doesn't listen to "start"
> > argument but only "forcestart" and similarly for other commands i've got to
> > use "force".
> > 
> > anyone knows why pls ??
> > 
> > martin
> 
> Because when the system boots up it sends the 'start' argument to 
> all the scripts in the rc.d directories, those scripts then check 
> wether they should start or not. Force start simply overrides that check.
> 
> Halldor


ok, i see now, thanks for your explanation!

m.


More information about the freebsd-questions mailing list