From nobody Tue Jan 30 16:31:55 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 4TPW1h3pzyz597YP for ; Tue, 30 Jan 2024 16:33:12 +0000 (UTC) (envelope-from garyj@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TPW1h0J6Bz46FJ for ; Tue, 30 Jan 2024 16:33:11 +0000 (UTC) (envelope-from garyj@gmx.de) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1706632316; x=1707237116; i=garyj@gmx.de; bh=bg0/La0+axav5mm6ANeSLsXCoH5Hz/Xm1nix4qXUlew=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:In-Reply-To:References: Reply-To; b=t5vYd8KHiT1+ACD1AkQ5zKiUYj0Wx5Ve+zWyzewPe7eizPnI+0VldefkVtKofAN0 +wlc9NtGO9aNRRBLmXjjadvr6Kpv2sUKje7Yd21pcFA7R6nATN0BMvE17FNBxUkQc goId6UtTiLy+RJKiW7bacCYbKc2xEPvvdKTNGlSfZQzxfjuwZDKz3wch3GumgK/YQ xmTYQa2T8g3BoqcwjH1nve+MXGJ5mXNWpm3hSMPiKul5o1aEIgeXFLZifOcz7KXXn FbUocM7sT4qeo78csGxdwYhOArF+TCAquPVlEA1oqYo+U5bq0S6Gllx5YrnqriAGq LYXXSNZuqo0/xLXKAg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from ernst.home ([91.59.224.160]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MTRMi-1rcalU1ETs-00Thxg; Tue, 30 Jan 2024 17:31:56 +0100 Date: Tue, 30 Jan 2024 16:31:55 +0000 From: Gary Jennejohn To: David Wolfskill Cc: current@freebsd.org, Tomek CEDRO Subject: Re: 'poweroff' seems to (only) halt as of main-n267841-0b3f9e435f2b Message-ID: <20240130173155.45a2bc88@ernst.home> In-Reply-To: References: <20240130164954.65b784f4@ernst.home> Reply-To: garyj@gmx.de X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) 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: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:wKBtUtgj7Q51YYxv6QVnb0NvF6oGEHJ258r/RvmHcibY5QtVJ8V Oy0KP6NThJ2JZsHaGWA7VE0wjrJpYmWVOZ+qjr2ZlEAd/g/r4AEfBlVi+9Z3UEuQR1sHwBQ enOp6wZNyFViP3igdsBAxqW0HODktKEfiroq+nWAc9gPIoy+ZujgAxyWBX/E7llGQHVqhTq Y7ssRr/TdiB6K7sDFsgSg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:8LNDhZHSKdw=;joy06tztGkT43cFr1lWZnKGxky5 LFx5RYmT5fVocOMx6UDrIc46wP7rTd31uaUEpUsDZ6K90D5+wZB4Eb1/cvqfeMjajZeHDvbDq /rjEbD455AprmbzScXZPo11nYapZIOaoMIJ39OxGhCk/5iiRnhTuz8xAXikc//zRHNCZrpwXo reX4IMOz2w944yEAgM2trcZdexEXxIknkNRNiY3DKHzeeGmEX8aUBp71EibEfNRDEdmVZ+922 H6Q8N28NRi+I3AsuSD2rIcydaJeYv0+DQKhzJzPlar4xifpKL/9Pq5HTu9OW1szkIwqJuEZSK oCQko5uwhfpy/SoEyeu+26zd8jeY5S8ywO63dDN25y8kRX4yA92kuGSyHdd/26qQFWN3B5TKz XVSfpsT7EWVWCp48tztbaOUr3uTS9nwP0JTyNDnfIwV1MueQ9V9OMqP9NeiWsKRt/s88dgmd8 AzVxCuRsVaPadE/w9R36YY+qSxXku4eGZ8yQFBPkPpvvSAPRoyn7UKpckgu9y9omxFCqTE78q 3YP5xXfmKPqEtmnUMjHYJU6sGks76t1R89mRa9KwO9tQwILZCfokHb2piqhgrQlZ/jp1IQMz6 4XsRrDGGlRTo7ccD9qRqPPJMOJe3P3rNb1vf217RY6fseAmvW8xPf3t5Bu0qYmEpCx6FpSlFv Uxi2tcWNdOXj8HNl9MzgnDQ/zYIkNQwaBTeXDbboMu+yHDyq6rtrh61XT2+44rdlj66lwPJdy lzhljGf+VvVSFIqfqRkKASr6BQLfdyW9IK5s2ZKF0BG8X7WbBygdwQoRwjq12vyigTrP/AgSG QYhHpPKsUcVByxF30ZWY15PcNZg1l7rcw+OR/9YDTui88NpJlWlm6CZXFaC/3sgSj5HiYLyp+ HGX3pyGL49X1pcNfT7r4RHSa25qC3+FKFJJ0UpCFdLQJqjdBxEG/BxydhO2eaiCiUXmXpPz/6 yucUL3VPqbbM9yWz07rN9wbxA/E= X-Rspamd-Queue-Id: 4TPW1h0J6Bz46FJ 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:8560, ipnet:212.227.0.0/16, country:DE] On Tue, 30 Jan 2024 08:12:23 -0800 David Wolfskill wrote: > 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 compute= rs. > > .... > > I could say the same about "poweroff", up to the main-n267808-197944948e= 62 > -> 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".) > Interesting, I wasn't aware of this. Reading shutdown(8) I see that poweroff is equivalent to shutdown -p now. Thanks! =2D- Gary Jennejohn