[OE-core] [PATCH] systemd: Reload configuration on package install

Khem Raj raj.khem at gmail.com
Fri Oct 28 18:00:20 UTC 2016


> On Oct 28, 2016, at 7:36 AM, Linus Wallgren <linus.wallgren at scypho.com> 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
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20161028/d7a1b243/attachment-0002.sig>


More information about the Openembedded-core mailing list