NetBSD Problem Report #45141
From www@NetBSD.org Wed Jul 13 20:32:48 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id C882A63C9D1
for <gnats-bugs@gnats.NetBSD.org>; Wed, 13 Jul 2011 20:32:47 +0000 (UTC)
Message-Id: <20110713203247.1528F63B904@www.NetBSD.org>
Date: Wed, 13 Jul 2011 20:32:47 +0000 (UTC)
From: moritz+NetBSD@wzff.de
Reply-To: moritz+NetBSD@wzff.de
To: gnats-bugs@NetBSD.org
Subject: shutdown.8: shutdown -p invokes poweroff, not halt
X-Send-Pr-Version: www-1.0
>Number: 45141
>Category: misc
>Synopsis: shutdown.8: shutdown -p invokes poweroff, not halt
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: dholland
>State: closed
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Wed Jul 13 20:35:00 +0000 2011
>Closed-Date: Tue Oct 04 07:47:03 +0000 2011
>Last-Modified: Tue Oct 04 07:47:03 +0000 2011
>Originator: Moritz Wilhelmy
>Release: NetBSD-current
>Organization:
-
>Environment:
NetBSD 5.99.54 (GENERIC) #0: Fri Jul 8 10:51:43 CEST 2011 root@fenrir:/usr/obj/sys/arch/i386/compile/GENERIC
>Description:
The manpage of shutdown mentions that shutdown -p invokes halt after completion. According to what I see in the code, it actually invokes poweroff rather than halt, which means shutdown -p halts the machine via ACPI if available and otherwise acts like shutdown -h, while shutdown -h - which calls halt - doesn't attempt to power off the machine.
>How-To-Repeat:
>Fix:
RCS file: /cvsroot/src/sbin/shutdown/shutdown.8,v
retrieving revision 1.30
diff -u -r1.30 shutdown.8
--- shutdown.8 16 Feb 2011 19:33:39 -0000 1.30
+++ shutdown.8 12 Jul 2011 17:24:55 -0000
@@ -102,7 +102,7 @@
The system is powered down at the specified
.Ar time ,
using
-.Xr halt 8 .
+.Xr poweroff 8 .
If the powerdown fails, or the system does not support software powerdown,
the system will simply halt instead.
.It Fl r
>Release-Note:
>Audit-Trail:
From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/45141 CVS commit: src/sbin/shutdown
Date: Tue, 4 Oct 2011 07:25:35 +0000
Module Name: src
Committed By: dholland
Date: Tue Oct 4 07:25:35 UTC 2011
Modified Files:
src/sbin/shutdown: shutdown.8
Log Message:
Fix thinko about halt vs. poweroff; from Moritz Wilhelmy in PR 45141.
To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sbin/shutdown/shutdown.8
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Responsible-Changed-From-To: misc-bug-people->dholland
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Tue, 04 Oct 2011 07:47:03 +0000
Responsible-Changed-Why:
I handled it
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 04 Oct 2011 07:47:03 +0000
State-Changed-Why:
fixed, thanks.
>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-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.