From owner-freebsd-questions@FreeBSD.ORG Mon Nov 21 14:22:31 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 8636616A41F for ; Mon, 21 Nov 2005 14:22:31 +0000 (GMT) (envelope-from titan@donald.thoron.org) Received: from donald.thoron.org (kjolur.tolvu.net [212.30.199.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6107643D77 for ; Mon, 21 Nov 2005 14:22:24 +0000 (GMT) (envelope-from titan@donald.thoron.org) Received: from donald.thoron.org (localhost [127.0.0.1]) by donald.thoron.org (8.13.4/8.13.4) with ESMTP id jALEMKWk042233; Mon, 21 Nov 2005 14:22:20 GMT (envelope-from titan@donald.thoron.org) Received: (from titan@localhost) by donald.thoron.org (8.13.4/8.13.4/Submit) id jALEMJUn042226; Mon, 21 Nov 2005 14:22:19 GMT (envelope-from titan) Date: Mon, 21 Nov 2005 14:22:19 +0000 From: "Halldor R. Haflidason" To: martinko , freebsd-questions@freebsd.org Message-ID: <20051121142219.GA41185@thoron.org> References: <011e01c5ee41$a8a18610$c801a8c0@nexpc> <20051121140830.M11345@pobox.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051121140830.M11345@pobox.sk> User-Agent: Mutt/1.4.2.1i Phone: +3548660848 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 14:22:31 -0000 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