NetBSD Problem Report #50836

From  Mon Feb 22 14:14:09 2016
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 9E3CF7A0F0
	for <>; Mon, 22 Feb 2016 14:14:09 +0000 (UTC)
Message-Id: <>
Date: Mon, 22 Feb 2016 15:14:04 +0100 (CET)
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
	Mathematisches Institut der Universität Bonn

System: NetBSD 6.1_STABLE NetBSD 6.1_STABLE (MI-Server) #5: Mon Feb 15 12:26:39 CET 2016 amd64
Architecture: x86_64
Machine: amd64
	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.
	Code inspection.
	Change rc.d/envsys's REQUIRE: to just mountcritremote (because envstat is on /usr/sbin) and add a BEFORE: powerd.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.