> On Oct 28, 2016, at 7:36 AM, Linus Wallgren <[email protected]> wrote: > > When a systemd service file has changed it is required to reload > systemd's configuration. Otherwise changes to a service file will not be > picked up during package upgrade.
while this seems reasonable. Does that happen on other distros using systemd
too ?
> ---
> meta/classes/systemd.bbclass | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass
> index d56c760..7e51ed6 100644
> --- a/meta/classes/systemd.bbclass
> +++ b/meta/classes/systemd.bbclass
> @@ -29,6 +29,10 @@ if [ -n "$D" ]; then
> fi
>
> if type systemctl >/dev/null 2>/dev/null; then
> + if [ -z "$D" ]; then
> + systemctl daemon-reload
> + fi
> +
> systemctl $OPTS ${SYSTEMD_AUTO_ENABLE} ${SYSTEMD_SERVICE}
>
> if [ -z "$D" -a "${SYSTEMD_AUTO_ENABLE}" = "enable" ]; then
> --
> 2.9.3
>
> --
> _______________________________________________
> Openembedded-core mailing list
> [email protected]
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
signature.asc
Description: Message signed with OpenPGP using GPGMail
-- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
