From: Tapani Tarvainen <ipfire@tapanitarvainen.fi>
To: development@lists.ipfire.org
Subject: Re: [PATCH 1/2] shutdown.cgi: Add "reboot with filesystem check" button
Date: Wed, 14 Jul 2021 20:41:06 +0300 [thread overview]
Message-ID: <20210714174106.GA37581@vesikko.tarvainen.info> (raw)
In-Reply-To: <1F196F80-AC3E-439B-8827-32EF61A7BBAD@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 1232 bytes --]
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).
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
--
Tapani Tarvainen
next prev parent reply other threads:[~2021-07-14 17:41 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 [this message]
2021-07-14 20:55 ` Leo Hofmann
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=20210714174106.GA37581@vesikko.tarvainen.info \
--to=ipfire@tapanitarvainen.fi \
--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