[gnome-continuous-yocto/gnomeostree-3.28-rocko: 3381/8267] systemd: Reload configuration on package install



commit 69a8784b7922f6d7bca3c462d61f8c8c289a0526
Author: Linus Wallgren <linus wallgren scypho com>
Date:   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.
    
    (From OE-Core rev: 94efe6d1d7893e241bcf98eff80ac8d8fbf2e885)
    
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 meta/classes/systemd.bbclass |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]