From owner-freebsd-bugs@FreeBSD.ORG Tue Apr 8 14:20:04 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 381649F8 for ; Tue, 8 Apr 2014 14:20:04 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 23B4116A8 for ; Tue, 8 Apr 2014 14:20:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s38EK37u025077 for ; Tue, 8 Apr 2014 14:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s38EK37c025076; Tue, 8 Apr 2014 14:20:03 GMT (envelope-from gnats) Date: Tue, 8 Apr 2014 14:20:03 GMT Message-Id: <201404081420.s38EK37c025076@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Aslak Raanes" Subject: Re: bin/173454: [patch] service(8) does not respect /etc/rc.conf.d/name X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Aslak Raanes List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2014 14:20:04 -0000 The following reply was made to PR bin/173454; it has been noted by GNATS. From: "Aslak Raanes" To: bug-followup@FreeBSD.org, gd@rambler-co.ru Cc: Subject: Re: bin/173454: [patch] service(8) does not respect /etc/rc.conf.d/name Date: Tue, 08 Apr 2014 16:16:26 +0200 It seems like this bug still apply to 10.0-RELEASE. Since /etc/rc.conf.d/ overrides /etc/rc.conf, using `service -e` will give a wrong impression on which services are enabled. $ uname -sr FreeBSD 10.0-RELEASE $ service -e | grep bsnmpd $ service bsnmpd rcvar # bsnmpd # bsnmpd_enable="NO" # (default: "") $ echo 'bsnmpd_enable="YES"' >> /etc/rc.conf $ service -e | grep bsnmpd /etc/rc.d/bsnmpd $ service bsnmpd rcvar # bsnmpd # bsnmpd_enable="YES" # (default: "") $ echo 'bsnmpd_enable="NO"' >> /etc/rc.conf.d/bsnmpd $ service -e| grep bsnmpd /etc/rc.d/bsnmpd $ service bsnmpd rcvar # bsnmpd # bsnmpd_enable="NO" # (default: "") $ /etc/rc.d/bsnmpd start Cannot 'start' bsnmpd. Set bsnmpd_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'. $ echo 'bsnmpd_enable="YES"' >> /etc/rc.conf.d/bsnmpd $ service bsnmpd rcvar # bsnmpd # bsnmpd_enable="YES" # (default: "") $ echo 'bsnmpd_enable="NO"' >> /etc/rc.conf $ grep bsnmpd_enable /etc/rc.conf bsnmpd_enable="YES" bsnmpd_enable="NO" $ cat /etc/rc.conf.d/bsnmpd bsnmpd_enable="NO" bsnmpd_enable="YES" $ service bsnmpd rcvar # bsnmpd # bsnmpd_enable="YES" # (default: "")