NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/45141: shutdown.8: shutdown -p invokes poweroff, not halt



>Number:         45141
>Category:       misc
>Synopsis:       shutdown.8: shutdown -p invokes poweroff, not halt
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 13 20:35:00 +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



Home | Main Index | Thread Index | Old Index