aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2016-09-13 19:18:44 +0200
committerAndreas Oberritter <obi@opendreambox.org>2017-10-17 04:38:27 +0200
commit13bfee13fc426d9ef05b788f6a0bc521271133ae (patch)
treedab5e42e9b8af4923a7f8cb56a931d5a88e40b00
parent762c347c39fcb8a5242f6a5634f9402b54b26055 (diff)
downloadopenembedded-core-contrib-13bfee13fc426d9ef05b788f6a0bc521271133ae.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
}