From owner-freebsd-arch@FreeBSD.ORG Sat Aug 21 19:18:21 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E0E816A4CE for ; Sat, 21 Aug 2004 19:18:21 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47CD543D2F for ; Sat, 21 Aug 2004 19:18:20 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from gothmog.gr (patr530-a129.otenet.gr [212.205.215.129]) i7LJIHK2008730 for ; Sat, 21 Aug 2004 22:18:18 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id i7LJGxdu000678 for ; Sat, 21 Aug 2004 22:16:59 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id i7LJGxe5000677 for freebsd-arch@freebsd.org; Sat, 21 Aug 2004 22:16:59 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Sat, 21 Aug 2004 22:16:59 +0300 From: Giorgos Keramidas To: freebsd-arch@freebsd.org Message-ID: <20040821191659.GA94336@gothmog.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: Introducing a poweroff(8) command X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Aug 2004 19:18:21 -0000 Hi guys, In response to PR misc/70476 about `halt -p' I wrote a simple patch to introduce a "poweroff" command that will default to "halt -p" behavior and inhibit the need for changing the default behavior of halt(8). o Does this look ok to you all? o Should I suggest using it as a workaround of the behavior described in the PR? The attached patch also fixes a bug described in PR bin/70536 (which I have submitted after looking around at the source code of reboot.c) but I can make these two separate diffs if we think it's worth it. === References === http://www.FreeBSD.org/cgi/query-pr.cgi?pr=misc/70476 http://www.FreeBSD.org/cgi/query-pr.cgi?pr=bin/70536