Bug 1279156 - shutdown -X time broken, shuts down the system immediately
Summary: shutdown -X time broken, shuts down the system immediately
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 23
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-08 08:30 UTC by Stanislav Paláček
Modified: 2015-12-17 07:24 UTC (History)
9 users (show)

Fixed In Version: systemd-222-10.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-17 07:24:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Stanislav Paláček 2015-11-08 08:30:41 UTC
Description of problem:


Version-Release number of selected component (if applicable): on Fedora 23


How reproducible: type to bash shutdown -P +20

Actual results: system is shutdown immediatley


Expected results: system shutdown after twenty minutes

Comment 1 Ondrej Oprala 2015-11-09 07:02:28 UTC
You need to run it like this:
bash -c 'shutdown -P +20'

Comment 2 Stanislav Paláček 2015-11-09 08:38:19 UTC
(In reply to Ondrej Oprala from comment #1)
> You need to run it like this:
> bash -c 'shutdown -P +20'

Also didn't working. I'm using this command daily. But after upgrading to fedora 23 it shutdown immediately. I take a video and found, that it shortly print this message: 'Failed to call ScheduleShutdown in logind, proceeding with immediate shutdown.'

Comment 3 Ondrej Oprala 2015-11-09 08:44:55 UTC
I googled a bit and it seems this is a systemd thing (also shutdown has nothing to do with bash, it also belongs under the systemd package). I'm sure they'll backport the patch soon [1].

[1] https://github.com/systemd/systemd/issues/1120

Comment 4 Michal Sekletar 2015-11-09 10:11:31 UTC
We need to backport 

https://patch-diff.githubusercontent.com/raw/systemd/systemd/pull/1157.patch

Comment 5 Fedora Update System 2015-12-14 11:17:31 UTC
systemd-222-9.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-76fc543765

Comment 6 Fedora Update System 2015-12-14 12:28:58 UTC
systemd-222-10.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-76fc543765

Comment 7 Fedora Update System 2015-12-15 10:53:58 UTC
systemd-222-10.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update systemd'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-76fc543765

Comment 8 Fedora Update System 2015-12-17 07:23:10 UTC
systemd-222-10.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, 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.