From nobody Tue Aug 20 08:59:23 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 4Wp3LM3dKwz5Sh6c for ; Tue, 20 Aug 2024 08:59:23 +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 4Wp3LM0dmVz4tkB for ; Tue, 20 Aug 2024 08:59:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724144363; a=rsa-sha256; cv=none; b=YHbf7lyoE0sqYAo+ESmkcBd4/5MW8WhMRkwaYQnzxe1m9D8q8SM47RWztQxs7xpEClnHCF NBYCC4PD3PzSgslIZz0VoKjpz4tmEdZT9Kyf1PXklL7NkEli7n2d25h00dqPCSbkLP3AXJ Gdu///lYPWnzFKPdwl1h8qaiDfQlHbBvdh+T7jR06sSWF39XLucBhzBqQxzz/skesxjAie vhslCrxR6S5outT3fpLJ3qxJNNv9xMIl+Ld2r8GOGlNnqaJ5Fzi3g+znrq7a7hslCdUIID 2pqKi8fKTmT+D8PO5YT8csol9AnY7PSjRmTBGW+9iE9iv4cz/sIngX5D4Wxcow== 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=1724144363; 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; bh=g16OFzh/Tgv3uuLxB6DKn7N1FV2Ij3HAakgQ53M0UpI=; b=VYCiexCMsJRFRlmASYHB478HlSdfYOXsZOrAyHuRbh0mE2kHqOSkG+NJ/qyhV4GOLr2BHb PdqpLQYNkKVq22F8ws8PopirhaK5qk11iDPc5C1+qbBpt1sG/94FBEQvHaKu6mle82u29Z C5KtQkU87s5NbOg8yDzhezNt4BTLi7kPL1L67sMvnp3SpQQYap9g3nzlx0Kw4lGyVNRHTL URTJQm2Z8amBoKxBxX46bETW9qnu5uA4XJ1ZWL8lIIVa23eyjc60mjKOoctbCpGM3bQ9f+ QPzPwEewtsxIR7r3UxmfOc4n8e7bMKvoeFbHZRx6DJpJ+pXbqprWXT4MoGrJ6w== 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 4Wp3LM0FxDztTK for ; Tue, 20 Aug 2024 08:59:23 +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 47K8xMp7037441 for ; Tue, 20 Aug 2024 08:59:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47K8xMej037438 for bugs@FreeBSD.org; Tue, 20 Aug 2024 08:59:22 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 08:59:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: ant-x@rambler.ru X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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 Bug ID: 280941 Summary: The reboot command considered harmful Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: ant-x@rambler.ru The `reboot' command violates the principle of least astonishment: although named after the common and regular operation, it is /not/ the recommended and graceful way to reboot the machine. For example, it does not invoke rc.shutdown(8). The Handbook therefore recommends initiating a reboot[1] with `shutdown -r now', which is a longer and less obvious command. Because of this, many users (and especially those coming from Linux), have been using `reboot' for years when they should have been using `shutdown -r' instead. To make the interface more logical and intuitive, I propose that a breaking change be introduced that causes `reboot' invoked without parameters to have an effect equivalent to that of `shutdown -r now', and to provide the current `reboot' behavior via `fastboot' and/or a new command-line option, such as -f or --fast. With that change, the bare `reboot' will do what its name suggests: a graceful reboot of the system. This dangerous `reboot' behavior was discussed on #freebsd on the 23rd of July, 2024, where gentler ways to amend the situation were proposed, including improving the documentaion and displaying a warning or error message from `reboot'. ____________________ 1. https://docs.freebsd.org/en/books/handbook/boot/#boot-shutdown --=20 You are receiving this mail because: You are the assignee for the bug.=