From owner-freebsd-stable@FreeBSD.ORG Wed Nov 28 20:37:13 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 02B6116A417 for ; Wed, 28 Nov 2007 20:37:13 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id C5A4813C46B for ; Wed, 28 Nov 2007 20:37:12 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.1/8.14.1) id lASK6Ak3064224; Wed, 28 Nov 2007 14:06:10 -0600 (CST) (envelope-from dan) Date: Wed, 28 Nov 2007 14:06:09 -0600 From: Dan Nelson To: Andrei Kolu Message-ID: <20071128200609.GD35339@dan.emsphone.com> References: <200711282116.53008.antik@bsd.ee> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200711282116.53008.antik@bsd.ee> X-OS: FreeBSD 7.0-BETA3 User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-stable@freebsd.org 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 20:37:13 -0000 In the last episode (Nov 28), Andrei Kolu said: > 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. > > 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. > > 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. Try "/etc/rc.d/powerd forcestop". What happens during startup and shutdown is that all rc.d scripts are run with "start" or "stop" arguments, and only the ones that have been enabled do anything. -- Dan Nelson dnelson@allantgroup.com