From owner-freebsd-current Tue Dec 15 02:40:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA12221 for freebsd-current-outgoing; Tue, 15 Dec 1998 02:40:15 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from schuimpje.snt.utwente.nl (schuimpje.snt.utwente.nl [130.89.238.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA11812 for ; Tue, 15 Dec 1998 02:37:47 -0800 (PST) (envelope-from gelderen@mediaport.org) Received: from wit395306.student.utwente.nl ([130.89.235.126]:7940 "HELO deskfix" ident: "NO-IDENT-SERVICE[2]") by schuimpje.snt.utwente.nl with SMTP id <8053-18880>; Tue, 15 Dec 1998 11:37:30 +0100 Message-ID: <00ab01be2816$c5a0e4c0$1400000a@deskfix.local> From: "Jeroen C. van Gelderen" To: "Terry Lambert" , "Mike Smith" Cc: , , , Subject: Re: HEADS UP : laptop power-down change Date: Tue, 15 Dec 1998 11:36:27 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From: Terry Lambert >> > Also, I think the correct flag is "-x", not "-p", from a historical >> > (Sony NeWS, NeXTStep, and A/UX, et. al.). >> >> That's a good point; now is probably the time to change it to be >> consistent. Any conflicting examples? > >Apparently NeXTStep uses "-p". Time for a survey. 8-(. Below is the appropriate Linux man page: ------------------------- NAME halt, reboot, poweroff - stop the system. SYNOPSIS /sbin/halt [-n] [-w] [-d] [-f] [-i] [-p] /sbin/reboot [-n] [-w] [-d] [-f] [-i] /sbin/poweroff [-n] [-w] [-d] [-f] [-i] DESCRIPTION Halt notes that the system is being brought down in the file /var/log/wtmp, and then either tells the kernel to halt, reboot or poweroff the system. If halt or reboot is called when the system is not in runlevel 0 or 6, shut­ down(8) will be invoked instead (with the flag -h or -r). OPTIONS -n Don't sync before reboot or halt. -w Don't actually reboot or halt but only write the wtmp record (in the /var/log/wtmp file). -d Don't write the wtmp record. The -n flag implies -d. -f Force halt or reboot, don't call shutdown(8). -i Shut down all network interfaces just before halt or reboot. -p When halting the system, do a poweroff. This is the default when halt is called as poweroff. ------------------------- -- Jeroen C. van Gelderen -- gelderen@mediaport.org -- &[8-D}~<= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message