Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675394 - sys-apps/systemd - systemd-poweroff.service requires [Service] Section with ExecStart
Summary: sys-apps/systemd - systemd-poweroff.service requires [Service] Section with E...
Status: RESOLVED WORKSFORME
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: 2019-01-14 12:27 UTC by Reimundo Heluani
Modified: 2019-01-24 14:45 UTC (History)
0 users

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 Reimundo Heluani 2019-01-14 12:27:54 UTC
After an update to sys-apps/systemd-240-r3 the systemd-poweroff.service unit lacks a [Service] Section with an ExecStart so I get the following error:


# systemctl poweroff 
Failed to power off system via logind: Unit systemd-poweroff.service has a bad unit file setting. 
Failed to start poweroff.target: Unit systemd-poweroff.service has a bad unit file setting. 
See system logs and 'systemctl status poweroff.target' for details. 



Adding the [Service] section to the file solves the issue. A little more in 
https://forums.gentoo.org/viewtopic-p-8300586.html#8300586
Comment 1 Mike Gilbert gentoo-dev 2019-01-14 15:27:34 UTC
You can run systemctl daemon-reexec to resolve this.

Do you have FEATURES="pid-sandbox" enabled? This breaks the systemctl daemon-reexec in pkg_postinst.
Comment 2 Reimundo Heluani 2019-01-14 20:13:04 UTC
(In reply to Mike Gilbert from comment #1)
> You can run systemctl daemon-reexec to resolve this.

Thanks, didn't know about this.

> 
> Do you have FEATURES="pid-sandbox" enabled? 

No I don't. (at least not that I know, meaning explicitly in any file and env of my root user, I checked a couple of build logs under /var/tmp/portage and none of those and my profile does not seem to set it).