[OE-core] [PATCH v2] systemd.bbclass: only restart the service when it is active at systemd_postinst

Burton, Ross ross.burton at intel.com
Wed Jan 22 18:06:44 UTC 2014


On 22 January 2014 17:56, Burton, Ross <ross.burton at intel.com> wrote:
> Whoops, this fell out of my inbox.   Whilst the is-active check now
> means that the service is restarted on upgrades, if the package is
> being installed it's now not started if AUTO_ENABLE is set to true.
>
> I think the logic should be "$D unset and (auto enable or is-active)"

Also, before doing systemctl reload, systemd needs to be told to
re-load the services with systemctl --system daemon-reload (thanks
Koen for pointing this out).

Ross



More information about the Openembedded-core mailing list