Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673778 - sys-apps/systemd-240 can't shutdown/reboot
Summary: sys-apps/systemd-240 can't shutdown/reboot
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-26 20:50 UTC by Michael Cook
Modified: 2018-12-29 02:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cook 2018-12-26 20:50:58 UTC
Dec 26 15:36:33 bristlebane systemd[1]: systemd-reboot.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
Dec 26 15:36:33 bristlebane systemd-logind[4551]: System is rebooting.
Dec 26 15:36:33 bristlebane systemd[1]: systemd-reboot.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
Dec 26 15:36:33 bristlebane systemd-logind[4551]: Error during inhibitor-delayed operation (already returned success to client): Unit systemd-reboot.service has a bad unit file setting.

Similar messages for shutdown.
Comment 1 josef.95 2018-12-26 21:11:15 UTC
After `systemctl daemon-reexec`
it works for me (systemctl poweroff).
Comment 2 Denis Descheneaux 2018-12-26 21:21:08 UTC
The first reboot, initially only logged off

worked after i kexec rebooted
Comment 3 Michael Cook 2018-12-26 21:48:24 UTC
(In reply to josef.95 from comment #1)
> After `systemctl daemon-reexec`
> it works for me (systemctl poweroff).

Unless I missed it (and it's not saved to any of my logs) would be nice to get a warning about this.
Comment 4 Larry the Git Cow gentoo-dev 2018-12-27 06:36:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed1c7de237ae5d2aff784d9c7fcd4df7fb43a6d6

commit ed1c7de237ae5d2aff784d9c7fcd4df7fb43a6d6
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2018-12-27 06:35:41 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2018-12-27 06:35:41 +0000

    sys-apps/systemd: reexec in pkg_postinst
    
    Closes: https://bugs.gentoo.org/673778
    Package-Manager: Portage-2.3.52_p18, Repoman-2.3.12_p30
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-apps/systemd/systemd-240.ebuild  | 6 ++++++
 sys-apps/systemd/systemd-9999.ebuild | 6 ++++++
 2 files changed, 12 insertions(+)
Comment 5 Juergen Rose 2018-12-28 19:32:20 UTC
I still have the same issue. Is it already fixed in the standard portage tree?
Comment 6 Mike Gilbert gentoo-dev 2018-12-29 00:16:00 UTC
The solution is to run systemctl daemon-reexec after upgrading system. The current ebuild does this automatically.
Comment 7 Juergen Rose 2018-12-29 02:42:31 UTC
(In reply to Mike Gilbert from comment #6)
> The solution is to run systemctl daemon-reexec after upgrading system. The
> current ebuild does this automatically.

Thanks