From nobody Tue Aug 20 10:35:42 2024 X-Original-To: bugs@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 4Wp5TV2kWsz5Srdl for ; Tue, 20 Aug 2024 10:35:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wp5TV0hXFz4Ft7 for ; Tue, 20 Aug 2024 10:35:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724150142; a=rsa-sha256; cv=none; b=gFV1+vwIfdhlKOPSdgfM/eimTwppMXCIHG9zp7yKLrOASdKaB8AyOvw7eQZzBTqBn4ZC99 6VWQpgEBzPe6hw7dLKrXw/ccPcYk7JEsLcBX4nxZoe7kFILd5+X4Q0K4G3mxVqgcNz/KYz MurbYB0X4x1epTHVJZLnwXBDfqovBlZnpi4tgrvgP/eYOO4KM/ryduuLFSXILAAwJaEVFD PSOZAhc602duPv0R1OjmPQRp2j4hiA69nwxiCcSoll43auU7GHimE0gHS1PhbaOrAsMQ0o H4SLFJBEzAgt5R/+rqfPJ4CFc3N7Ib0Nb1Fh1RgtA6M2m8XCDK5snwtkm8y1dA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724150142; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xCoepVo1WvlYuz9DopcKT7ZmllbxAZi1FGbtopW/SYQ=; b=MaRNVoaUBAQFwO0bHmSwVxNt2dBWPZCXsdnqPCGKTmTg9OwLsGk8nOVYEe5Wvv3iISRcOs 4Vxd3TFUMjQjP7Dj8xgUwEXHfkln87vgTjNP0jggvOXsKA3CJKM6YQSHRX7kMqJznqI4fl kqImbATeUh8ytxwtVUBGffOk+4JJ9GdyIF41+lj0Dk6bhV+waoj+27D+ToeDvyIHGuBy0/ rv4eZjSB6m2FqhKx/VF2aVT5AEqzWQaqp+yvJ1ZtKu5y6tgrQEX9CZsMTbNDAFHhAyyIUR u/xMXtEcq011zwlqsCZlMtWWcNMNzQkev/jChaTwlYy9VCPBAdd36/thIIhy3A== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wp5TV0GX4zw8q for ; Tue, 20 Aug 2024 10:35:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 47KAZftp053993 for ; Tue, 20 Aug 2024 10:35:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47KAZfet053992 for bugs@FreeBSD.org; Tue, 20 Aug 2024 10:35:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 280941] The reboot command considered harmful Date: Tue, 20 Aug 2024 10:35:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bugs.freebsd.org@aljoscha.vollmerhaus.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280941 bugs.freebsd.org@aljoscha.vollmerhaus.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugs.freebsd.org@aljoscha.v | |ollmerhaus.net --- Comment #2 from bugs.freebsd.org@aljoscha.vollmerhaus.net --- I'd like to add my experience here, as I was the reason for that discussion= on the IRC channel. While trying to write an rc script for a program of mine, I spent hours try= ing to figure out why my shutdown procedure didn't work. Only after lengthy debugging, and with help from the kind folks on #freebsd, was I able to determine that the problem wasn't with my rc script but rather with the fact that I had been using "reboot" instead of "shutdown -r now." Although it was quickly pointed out that the behavior of "reboot" is clearly documented, I had no indication that I should even look at the docs for "reboot". Coming from a Linux background, I was under the assumption it would simply reboot the machine. And reboot it did, so nothing gave me any hint that I was doing something wrong. I had been restarting my FreeBSD machines using "reboot" for years at that point. This led me on a wild goose chase for a fault in my script that didn't exis= t. I was made aware that the meaning of "reboot" as "skip proper procedures" i= s a very old default and that changing this established behavior could disrupt = old scripts and ingrained habits. However, at the very least, I believe a hint - such as printing something l= ike "emergency reboot, skipping proper shutdown!" to stdout or stderr - should = be added to the "reboot" command. --=20 You are receiving this mail because: You are the assignee for the bug.=