public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Leo Hofmann <hofmann@leo-andres.de>
To: development@lists.ipfire.org
Subject: Re: [PATCH 1/2] shutdown.cgi: Add "reboot with filesystem check" button
Date: Wed, 14 Jul 2021 22:55:00 +0200	[thread overview]
Message-ID: <b163ff94-4d8d-faa1-629f-d4c43f598b94@leo-andres.de> (raw)
In-Reply-To: <20210714174106.GA37581@vesikko.tarvainen.info>

[-- Attachment #1: Type: text/plain, Size: 1465 bytes --]

Am 14.07.2021 um 19:41 schrieb Tapani Tarvainen:
> On Wed, Jul 14, 2021 at 05:12:27PM +0100, Michael Tremer (michael.tremer(a)ipfire.org) wrote:
>
>> Does the -r switch in shutdown(8) actually work?
> Yes. It has worked in all Linux systems I've used for years
> (and several non-Linux Unix-based systems like HP-UX).
I also tried this on my IPFire test system before submitting the patch and can confirm that -r (and -F) work as expected :)
>
> In the past "shutdown -r now" and "reboot" differed, e.g., reboot
> didn't sync or run shutdown scripts (and thus shutdown was sometimes
> recommended as the "safe" or "clean" way to reboot), but nowadays
> they're identical apart from some different options (notably, reboot
> has the "-f" option for "dirty" reboot, but it's not default anymore).
> People generally use whichever they're used to.
>
> Today shutdown, reboot, halt and poweroff are all symlinks to
> systemctl in Debian and Ubuntu at least, but options and defaults
> differ depending on which name it is called with.
>
> E.g., Debian Buster:
>
> $ ls -l /sbin/{shutdown,reboot,halt,poweroff}
> lrwxrwxrwx 1 root root 14 Mar 18 21:59 /sbin/halt -> /bin/systemctl
> lrwxrwxrwx 1 root root 14 Mar 18 21:59 /sbin/poweroff -> /bin/systemctl
> lrwxrwxrwx 1 root root 14 Mar 18 21:59 /sbin/reboot -> /bin/systemctl
> lrwxrwxrwx 1 root root 14 Mar 18 21:59 /sbin/shutdown -> /bin/systemctl
> 	
Thanks for the detailed explanation!

      reply	other threads:[~2021-07-14 20:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-13 19:06 Leo-Andres Hofmann
2021-07-13 19:06 ` [PATCH 2/2] Run "./make.sh lang" Leo-Andres Hofmann
2021-07-14 16:12 ` [PATCH 1/2] shutdown.cgi: Add "reboot with filesystem check" button Michael Tremer
2021-07-14 17:41   ` Tapani Tarvainen
2021-07-14 20:55     ` Leo Hofmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b163ff94-4d8d-faa1-629f-d4c43f598b94@leo-andres.de \
    --to=hofmann@leo-andres.de \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox