[oe-commits] [openembedded-core] 12/60: systemd: Reload configuration on package install

git at git.openembedded.org git at git.openembedded.org
Wed Nov 23 11:11:23 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 94efe6d1d7893e241bcf98eff80ac8d8fbf2e885
Author: Linus Wallgren <linus.wallgren at scypho.com>
AuthorDate: Fri Oct 28 16:36:27 2016 +0200

    systemd: Reload configuration on package install
    
    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.
    
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list