NetBSD Problem Report #50836
From ef@math.uni-bonn.de Mon Feb 22 14:14:09 2016
Return-Path: <ef@math.uni-bonn.de>
Received: from mail.netbsd.org (mail.NetBSD.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 9E3CF7A0F0
for <gnats-bugs@gnats.NetBSD.org>; Mon, 22 Feb 2016 14:14:09 +0000 (UTC)
Message-Id: <20160222141404.72DAC1BD42@trave.math.uni-bonn.de>
Date: Mon, 22 Feb 2016 15:14:04 +0100 (CET)
From: ef@math.uni-bonn.de
Reply-To: ef@math.uni-bonn.de
To: gnats-bugs@gnats.NetBSD.org
Subject: rc.d/envsys rcorder
X-Send-Pr-Version: 3.95
>Number: 50836
>Category: misc
>Synopsis: rc.d/envsys rcorder
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 22 14:15:00 +0000 2016
>Originator: Edgar Fuß
>Release: NetBSD 6.1_STABLE
>Organization:
Mathematisches Institut der Universität Bonn
>Environment:
System: NetBSD trave.math.uni-bonn.de 6.1_STABLE NetBSD 6.1_STABLE (MI-Server) #5: Mon Feb 15 12:26:39 CET 2016 support@trave.math.uni-bonn.de:/usr/obj/sys/arch/amd64/compile/miserv amd64
Architecture: x86_64
Machine: amd64
>Description:
rc.d/envsys (which sets the values according to envsys.conf) should be run BEFORE rc.d/powerd. Otherwise, bogus default values (set by the BIOS) may cause powerd to shut down the machine before envsys has had a chance to set the correct values.
Worse, rc.d/envsys has a "REQUIRE: LOGIN DAEMON", while rc.d/powerd has a "BEFORE: LOGIN", which forces powerd to start before envsys values are set.
>How-To-Repeat:
Code inspection.
>Fix:
Change rc.d/envsys's REQUIRE: to just mountcritremote (because envstat is on /usr/sbin) and add a BEFORE: powerd.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.