aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-core/systemd/systemd-systemctl-native
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@googlemail.com>2012-09-17 10:58:06 +0000
committerEric Bénard <eric@eukrea.com>2012-12-16 10:50:24 +0100
commitf713db38526895eeaf97678aa0a41cb7ff641d41 (patch)
tree20214e3a0cd8ac43c6c2e0a5f0cdbdb96e853f62 /meta-oe/recipes-core/systemd/systemd-systemctl-native
parent06606bba4469492091490914bea448d8eb1df309 (diff)
downloadmeta-openembedded-f713db38526895eeaf97678aa0a41cb7ff641d41.tar.gz
systemd-systemctl-native: Add additional messages for better debugging
These messages helped me to fix the breakage of networkmanager/systemd Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Eric Bénard <eric@eukrea.com>
Diffstat (limited to 'meta-oe/recipes-core/systemd/systemd-systemctl-native')
-rwxr-xr-xmeta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl5
1 files changed, 5 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 c4a0a3fade..46e74e847b 100755
--- a/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl
+++ b/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl
@@ -1,4 +1,5 @@
#!/bin/sh
+echo "Started $0 $*"
ROOT=
@@ -42,6 +43,7 @@ while [ $# != 0 ]; do
done
for service in $services; do
+ echo "Try to find location of $service..."
# find service file
for p in $ROOT/etc/systemd/system \
$ROOT/lib/systemd/system \
@@ -55,6 +57,7 @@ for service in $services; do
echo "'$service' couldn't be found; exiting with error"
exit 1
fi
+ echo "Found $service in $service_file"
# create the required symbolic links
wanted_by=$(grep WantedBy $ROOT/$service_file \
@@ -63,6 +66,7 @@ for service in $services; do
| grep '\.target$')
for r in $wanted_by; do
+ echo "WantedBy=$r found in $service"
if [ "$action" = "enable" ]; then
mkdir -p $ROOT/etc/systemd/system/$r.wants
ln -s $service_file $ROOT/etc/systemd/system/$r.wants
@@ -79,6 +83,7 @@ for service in $services; do
| sed 's,Also=,,g' \
| tr ',' '\n')
for a in $also; do
+ echo "Also=$a found in $service"
if [ "$action" = "enable" ]; then
$0 --root=$ROOT enable $a
fi