1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-10 00:58:20 +03:00
anarcat 9aafd310cc man/shutdown: document how to switch to single-user mode
Before Debian switched to systemd, `shutdown now` would reset the system into
single user mode, doing roughly the equivalent of `telinit 1`.

Now, systemd's `shutdown` command does not behave that way; it defaults to
`poweroff` which might be confusing for users (like me) used to the previous
method.

Because I don't use the command often, I keep being stumped by this behavior,
and every time I look at the `shutdown(1)` manpage, I don't understand why I
can't find what I am looking for. This patch should make sure that people like
me find their way back to some sort of reason.

Maybe the *proper* way to fix this would be to restore the more classic
behavior, but I'm definitely not going to climb that hill. Besides, I clearly
remember the time I found out about the `shutdown` command and was *really*
confused when it brought me back to a command-line prompt. That was really
counter-intuitive and I find that change to actually be a good thing. So I'm
not proposing to change this behavior, merely document it better.

I originally added this to the `-P` option but it was suggested adding a new
`COMPATIBILITY` section instead, where other such issues could be added.

The `COMPATIBILITY` section is not actually officially documented. `man(1)`
talks about a `CONFORMING TO` section, but `shutdown(1)` is not
POSIX (`shutdown(2)` is, of course), so there's no actual standard on how this
should work.

The other option I considered was to add a `BUGS` section, but that seemed to
inflammatory, and definitely counter-productive.
2022-10-07 17:54:31 +02:00
..
2022-06-28 13:10:05 +02:00
2022-06-28 16:05:31 +02:00
2022-06-28 13:10:05 +02:00
2022-06-28 13:10:05 +02:00
2021-08-18 13:36:14 +02:00
2022-06-28 13:10:05 +02:00
2022-10-03 09:23:37 +09:00
2022-03-07 15:32:22 +09:00
2020-12-16 17:21:48 +01:00
2021-01-04 11:01:17 +00:00
2021-06-30 23:33:00 +09:00
2021-01-04 11:01:17 +00:00
2022-01-06 22:20:11 +09:00
2021-11-30 13:54:27 +01:00
2022-08-23 12:14:58 +02:00
2022-08-28 00:03:36 +09:00
2022-07-23 11:18:23 +09:00
2022-03-21 20:06:13 +00:00
2022-07-15 10:53:45 +02:00
2022-08-23 12:14:58 +02:00
2020-11-09 13:23:58 +09:00
2020-12-16 17:21:48 +01:00
2022-05-11 19:12:24 +01:00