From owner-freebsd-questions@FreeBSD.ORG Mon Nov 21 14:26:40 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 CC1AA16A41F for ; Mon, 21 Nov 2005 14:26:40 +0000 (GMT) (envelope-from mtbeedee@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id B583143D6D for ; Mon, 21 Nov 2005 14:26:37 +0000 (GMT) (envelope-from mtbeedee@gmail.com) Received: by wproxy.gmail.com with SMTP id i5so815771wra for ; Mon, 21 Nov 2005 06:26:36 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jktvsRFLdew0EyoPTd0j2+JPTmcU43SchTCxhGazQm5MMyWLfgphFiFtOF54aY7D80lDA3bnHYh/XxLrgjusxI/wl9EDDlqaxAafYs92W7ygTfdqD8KtYzZNwwlLuermROAMT8CNBeIDhqPeQOuiHgvCJtqsU+7EufQdZ/PcIf0= Received: by 10.54.133.12 with SMTP id g12mr1206479wrd; Mon, 21 Nov 2005 06:26:36 -0800 (PST) Received: by 10.54.157.14 with HTTP; Mon, 21 Nov 2005 06:26:36 -0800 (PST) Message-ID: Date: Mon, 21 Nov 2005 09:26:36 -0500 From: Michael Beattie To: "Halldor R. Haflidason" In-Reply-To: <20051121142219.GA41185@thoron.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <011e01c5ee41$a8a18610$c801a8c0@nexpc> <20051121140830.M11345@pobox.sk> <20051121142219.GA41185@thoron.org> Cc: martinko , freebsd-questions@freebsd.org 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:26:40 -0000 On 11/21/05, 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=3D"YES". > > > > > > well, if you add sshd_enable=3D"YES", the service (always) starts on bo= ot. > > > > 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 go= t 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 Then something's broken, no? If the service isnt running and you send it a "start" and it doesnt start, then that's bad. You shouldnt need to override some checks, it should do what it's commanded to do.