On Sat, Oct 29, 2016 at 12:52 PM, Linus <[email protected]> wrote: > I do believe so, quickly looking through a debian stretch package I found > that it uses deb-systemd-helper, as part of the init-system-helpers package, > which does reload things if anything changes: > > https://sources.debian.net/src/init-system-helpers/1.45/script/deb-systemd-helper/#L588
thanks. Seems ok to me. > > On 2016-10-28 20:00, Khem Raj wrote: >> >> >>> 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 >> >> > -- > _______________________________________________ > Openembedded-core mailing list > [email protected] > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
