Bug 1449751 - Documentation for "reboot" and "poweroff" is wrong
Summary: Documentation for "reboot" and "poweroff" is wrong
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-10 15:10 UTC by Chris Adams
Modified: 2022-04-12 20:40 UTC (History)
9 users (show)

Fixed In Version: systemd-236-1.fc28 systemd-251~rc1-1.fc37 systemd-251~rc1-2.fc37 systemd-251~rc1-3.fc37
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-29 21:07:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Chris Adams 2017-05-10 15:10:37 UTC
Traditionally, "/sbin/reboot -f" would immediately call the kernel syscall to reboot, without contacting the init system, shutting down services, unmounting filesystems, etc.  The man page for reboot/poweroff still says this is the case. 
However, it is not what actually happens with the systemd-provided reboot (just a symlink to systemctl).  Reading the systemctl man page, apparently you have to add -f (or --force) _twice_ to get the traditional behavior.

At a minimum, the man page should be updated, but it would be better to restore the old behavior (at least when systemctl is called as reboot or poweroff).

Comment 1 Fedora End Of Life 2017-11-16 19:40:08 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 2 Zbigniew Jędrzejewski-Szmek 2017-11-20 09:54:13 UTC
https://github.com/systemd/systemd/pull/7392

Comment 3 Jan Synacek 2017-11-20 09:57:37 UTC
Well, I wasn't sure if this was a good idea, since symlinking reboot/poweroff/halt binaries to systemctl seems distro-specific to me. I tried installing the current master into a temp directory and those binaries/symlinks are not there.

Comment 4 Zbigniew Jędrzejewski-Szmek 2017-11-20 10:39:29 UTC
$ ls -l /usr/sbin/reboot
lrwxrwxrwx. 1 root root 16 Oct 12 16:59 /usr/sbin/reboot -> ../bin/systemctl
$ rpm -qf /usr/sbin/reboot
systemd-235-1.fc28.x86_64

I'm pretty sure they are there ;)

Comment 5 Zbigniew Jędrzejewski-Szmek 2022-02-15 13:59:12 UTC
Patch was reverted in https://github.com/systemd/systemd/pull/22518.
It turns out that the original report was wrong and the original behaviour and documentation
were correct and compatible with sysv halt.

Comment 6 Fedora Update System 2022-03-29 21:03:32 UTC
FEDORA-2022-3d496adfa0 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-3d496adfa0

Comment 7 Fedora Update System 2022-03-29 21:07:26 UTC
FEDORA-2022-3d496adfa0 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2022-04-04 10:11:51 UTC
FEDORA-2022-547b0bc17c has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-547b0bc17c

Comment 9 Fedora Update System 2022-04-04 10:15:04 UTC
FEDORA-2022-547b0bc17c has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2022-04-12 20:39:07 UTC
FEDORA-2022-6b91a6b9db has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-6b91a6b9db

Comment 11 Fedora Update System 2022-04-12 20:40:28 UTC
FEDORA-2022-6b91a6b9db has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.