From owner-freebsd-stable@FreeBSD.ORG Wed Nov 28 19:48:56 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB42216A417 for ; Wed, 28 Nov 2007 19:48:56 +0000 (UTC) (envelope-from freebsd-stable@dino.sk) Received: from loki.netlab.sk (ns1.netlab.sk [84.245.65.2]) by mx1.freebsd.org (Postfix) with ESMTP id 5CA1213C44B for ; Wed, 28 Nov 2007 19:48:56 +0000 (UTC) (envelope-from freebsd-stable@dino.sk) Received: from lex.dino.sk (home.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Wed, 28 Nov 2007 20:38:09 +0100 id 0002E029.474DC3A1.00003D8A From: Milan Obuch To: freebsd-stable@freebsd.org Date: Wed, 28 Nov 2007 20:37:30 +0100 User-Agent: KMail/1.9.6 References: <200711282116.53008.antik@bsd.ee> In-Reply-To: <200711282116.53008.antik@bsd.ee> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200711282037.32490.freebsd-stable@dino.sk> Subject: Re: questionable feature- rcvar woes X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2007 19:48:56 -0000 On Wednesday 28 November 2007 20:16:51 Andrei Kolu wrote: > Something is wrong with rcvar or I am just blatant. > > For example: > > 1) Enable powerd in rc.conf > # echo 'enable_powerd="YES"' >> /etc/rc.conf > 2) Launch powerd > # /etc/rc.d/powerd start > Starting powerd. > 3) And stopping it. > # /etc/rc.d/powerd stop > Stopping powerd. > Agree - everything just fine. > Everything looks fine, but when I disable powerd in rc.conf then problem > arise. > > 1) Disable powerd in rc.conf- comment it out. > # enable_powerd="YES" > 2) Stop powerd > # /etc/rc.d/powerd stop > ...silence- nothing in logs either. > Stop for a moment - enable_powerd means actually 'enable action carried by /etc/rc.d/powerd script', using this semantics actually explains all details. Or you could treat it as a stack of a sort, reversing order to 2) 1) just produces desired output. > What? Not even a warning message and powerd is actually running- why I have > to reboot to disable it? I know that I can stop it by enabling it in > rc.conf but what the point? Same problem when I want to start some service > without appropriate line in rc.conf. I'd prefer to see somekind of warning > about misconfigured rc.conf or at least information about what's going on > in reality. > I hope my explanation above suffices. I was hit by this too, but rc.d scripts behavior is well designed and understandable. If, for some reason, you are still hit with described behavior, there is a save rope - /etc/rc.d/powerd forcestop will stop powerd even if there is no enable var in rc.conf. Regards, Milan -- No need to mail me directly. Just reply to mailing list, please.