aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-12-13 10:43:43 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2011-12-15 09:25:07 +0100
commit2cba3b024407bf0cdba09b27e06eb207ea77a754 (patch)
tree72791a1455f01645fc0d80bbdc0cf239f19220c8 /meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl
parente550e77ca9956911ec1212984b1aac2d05e4e650 (diff)
downloadmeta-openembedded-2cba3b024407bf0cdba09b27e06eb207ea77a754.tar.gz
meta-openembedded-2cba3b024407bf0cdba09b27e06eb207ea77a754.tar.bz2
meta-openembedded-2cba3b024407bf0cdba09b27e06eb207ea77a754.zip
systemd-systemctl-native: add support to recursive services
Some services can reference others for installation thought the Also key; systemctl now handles it calling itself recursively for each service. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl')
-rwxr-xr-xmeta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl b/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl
index 1fc77fd92..54c1a18bf 100755
--- a/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl
+++ b/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl
@@ -49,3 +49,11 @@ for r in $wanted_by; do
ln -s $service_file $ROOT/etc/systemd/system/$r.wants
echo "Enabled $service for $wanted_by."
done
+
+# call us for the other required scripts
+also=$(grep Also $ROOT/$service_file \
+ | sed 's,Also=,,g' \
+ | tr ',' '\n')
+for a in $also; do
+ $0 --root=$ROOT enable $a
+done