aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2016-09-13 19:18:44 +0200
committerAndreas Oberritter <obi@opendreambox.org>2017-06-26 22:57:15 +0200
commit8d4ceda534d1af9648e9501032b2f9400d90c3ad (patch)
treed321537dc70e087cc481d2619ef52264c4d50c94
parentef90cc78a701cb7c45a74d8f88bccd04a864d246 (diff)
downloadopenembedded-core-contrib-8d4ceda534d1af9648e9501032b2f9400d90c3ad.tar.gz
systemd.bbclass: don't block on restart in postinst snippet
Blocking may lead to failed upgrades if dependencies refused to start on boot. Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
-rw-r--r--meta/classes/systemd.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass
index db7873fbe2..330ae97dfc 100644
--- a/meta/classes/systemd.bbclass
+++ b/meta/classes/systemd.bbclass
@@ -32,7 +32,7 @@ if type systemctl >/dev/null 2>/dev/null; then
systemctl $OPTS ${SYSTEMD_AUTO_ENABLE} ${SYSTEMD_SERVICE}
if [ -z "$D" -a "${SYSTEMD_AUTO_ENABLE}" = "enable" ]; then
- systemctl restart ${SYSTEMD_SERVICE}
+ systemctl --no-block restart ${SYSTEMD_SERVICE}
fi
fi
}