summaryrefslogtreecommitdiffstats
path: root/meta/classes/systemd.bbclass
diff options
context:
space:
mode:
authorLinus Wallgren <linus.wallgren@scypho.com>2016-10-28 16:36:27 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-11-23 11:10:12 +0000
commit69a8784b7922f6d7bca3c462d61f8c8c289a0526 (patch)
tree7d896c2ca582bac37d967268141945ad27114db5 /meta/classes/systemd.bbclass
parent775e7a49040961a101536c63c4d3ada33138540b (diff)
downloadpoky-69a8784b7922f6d7bca3c462d61f8c8c289a0526.tar.gz
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>
Diffstat (limited to 'meta/classes/systemd.bbclass')
-rw-r--r--meta/classes/systemd.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass
index d56c760a17..7e51ed6718 100644
--- a/meta/classes/systemd.bbclass
+++ b/meta/classes/systemd.bbclass
@@ -29,6 +29,10 @@ if [ -n "$D" ]; then
29fi 29fi
30 30
31if type systemctl >/dev/null 2>/dev/null; then 31if type systemctl >/dev/null 2>/dev/null; then
32 if [ -z "$D" ]; then
33 systemctl daemon-reload
34 fi
35
32 systemctl $OPTS ${SYSTEMD_AUTO_ENABLE} ${SYSTEMD_SERVICE} 36 systemctl $OPTS ${SYSTEMD_AUTO_ENABLE} ${SYSTEMD_SERVICE}
33 37
34 if [ -z "$D" -a "${SYSTEMD_AUTO_ENABLE}" = "enable" ]; then 38 if [ -z "$D" -a "${SYSTEMD_AUTO_ENABLE}" = "enable" ]; then