From nobody Tue Jan 30 16:12:23 2024 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TPVYl4JYHz596Dd for ; Tue, 30 Jan 2024 16:12:27 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mx.catwhisker.org (mx.catwhisker.org [107.204.234.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TPVYk6rqWz43sP for ; Tue, 30 Jan 2024 16:12:26 +0000 (UTC) (envelope-from david@catwhisker.org) Authentication-Results: mx1.freebsd.org; none Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.17.1/8.17.1) with ESMTP id 40UGCNMn032317; Tue, 30 Jan 2024 16:12:23 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.17.1/8.17.1/Submit) id 40UGCNQ2032316; Tue, 30 Jan 2024 08:12:23 -0800 (PST) (envelope-from david) Date: Tue, 30 Jan 2024 08:12:23 -0800 From: David Wolfskill To: Gary Jennejohn Cc: current@freebsd.org, Tomek CEDRO Subject: Re: 'poweroff' seems to (only) halt as of main-n267841-0b3f9e435f2b Message-ID: Mail-Followup-To: David Wolfskill , Gary Jennejohn , current@freebsd.org, Tomek CEDRO References: <20240130164954.65b784f4@ernst.home> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2ZMu73upmv5ugwIb" Content-Disposition: inline In-Reply-To: <20240130164954.65b784f4@ernst.home> X-Rspamd-Queue-Id: 4TPVYk6rqWz43sP X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7018, ipnet:107.192.0.0/12, country:US] --2ZMu73upmv5ugwIb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 30, 2024 at 03:49:54PM +0000, Gary Jennejohn wrote: > ... > I use 'shutdown -p now' and it's never failed to power down my computers. > .... I could say the same about "poweroff", up to the main-n267808-197944948e62 -> main-n267841-0b3f9e435f2b transition. And I probably wouldn't have mentioned anything, except that each of the 3 machines (one headless build machine; 2 laptops) I tested exhibited the same change. Note, too, from src/sbin/shutdown/shutdown.c: /* * Test for the special case where the utility is called as * "poweroff", for which it runs 'shutdown -p now'. */ if ((p =3D strrchr(argv[0], '/')) =3D=3D NULL) p =3D argv[0]; else ++p; if (strcmp(p, "poweroff") =3D=3D 0) { if (getopt(argc, argv, "") !=3D -1) usage((char *)NULL); argc -=3D optind; argv +=3D optind; if (argc !=3D 0) usage((char *)NULL); dopower =3D 1; offset =3D 0; (void)time(&shuttime); goto poweroff; (So I believe we are referring to the same code paths, whether by "shutdown -p now" or "poweroff".) Peace, david --=20 David H. Wolfskill david@catwhisker.org Do these ends really justify those means? See https://www.catwhisker.org/~david/publickey.gpg for my public key. --2ZMu73upmv5ugwIb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iNUEARYKAH0WIQSTLzOSbomIK53fjFliipiWhXYx5QUCZbkf518UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0OTMy RjMzOTI2RTg5ODgyQjlEREY4QzU5NjI4QTk4OTY4NTc2MzFFNQAKCRBiipiWhXYx 5SZ3AP9vdL5wjPYxxxYfSrGv5fJjKBcO5MoD3sz1dOi/EOdKoQD/a8sg+9GGoESq yjtL3e+VQlHAZY2uT071K8ipfZEdGgk= =hM3w -----END PGP SIGNATURE----- --2ZMu73upmv5ugwIb--