diff options
Diffstat (limited to 'meta')
-rw-r--r-- | 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 d56c760a17..7e51ed6718 100644 --- a/meta/classes/systemd.bbclass +++ b/meta/classes/systemd.bbclass | |||
@@ -29,6 +29,10 @@ if [ -n "$D" ]; then | |||
29 | fi | 29 | fi |
30 | 30 | ||
31 | if type systemctl >/dev/null 2>/dev/null; then | 31 | if 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 |