From owner-freebsd-questions@FreeBSD.ORG Mon Nov 21 15:30:38 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 43B3116A425 for ; Mon, 21 Nov 2005 15:30:38 +0000 (GMT) (envelope-from martinkov@pobox.sk) Received: from mail.pipni.cz (mail.pipni.cz [193.86.238.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 232B943D72 for ; Mon, 21 Nov 2005 15:30:35 +0000 (GMT) (envelope-from martinkov@pobox.sk) Received: from [193.86.238.3] (port=41342 helo=gamato.org) id 1EeDcn-0008HF-H0; Mon, 21 Nov 2005 16:30:33 +0100 From: "martinko" To: "Halldor R. Haflidason" ,freebsd-questions@freebsd.org Date: Mon, 21 Nov 2005 16:30:33 +0100 Message-Id: <20051121152940.M90359@pobox.sk> In-Reply-To: <20051121142219.GA41185@thoron.org> References: <011e01c5ee41$a8a18610$c801a8c0@nexpc> <20051121140830.M11345@pobox.sk> <20051121142219.GA41185@thoron.org> X-Mailer: Open WebMail 2.51 20050228 X-OriginatingIP: 212.202.115.220 (m@gamato.org) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Cc: 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: Mon, 21 Nov 2005 15:30:38 -0000 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.