summaryrefslogtreecommitdiffstats
path: root/meta/classes/systemd.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/systemd.bbclass')
-rw-r--r--meta/classes/systemd.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass
index 42fa554c12..69eeb9ef16 100644
--- a/meta/classes/systemd.bbclass
+++ b/meta/classes/systemd.bbclass
@@ -27,7 +27,7 @@ if [ -n "$D" ]; then
27 OPTS="--root=$D" 27 OPTS="--root=$D"
28fi 28fi
29 29
30if type systemctl >/dev/null; then 30if type systemctl >/dev/null 2>/dev/null; then
31 systemctl $OPTS ${SYSTEMD_AUTO_ENABLE} ${SYSTEMD_SERVICE} 31 systemctl $OPTS ${SYSTEMD_AUTO_ENABLE} ${SYSTEMD_SERVICE}
32 32
33 if [ -z "$D" -a "${SYSTEMD_AUTO_ENABLE}" = "enable" ]; then 33 if [ -z "$D" -a "${SYSTEMD_AUTO_ENABLE}" = "enable" ]; then
@@ -37,7 +37,7 @@ fi
37} 37}
38 38
39systemd_prerm() { 39systemd_prerm() {
40if type systemctl >/dev/null; then 40if type systemctl >/dev/null 2>/dev/null; then
41 if [ -z "$D" ]; then 41 if [ -z "$D" ]; then
42 systemctl stop ${SYSTEMD_SERVICE} 42 systemctl stop ${SYSTEMD_SERVICE}
43 fi 43 fi