[oe-commits] Denis 'GNUtoo' Carikli : meta-systemd: systemd-systemctl-native: Also add support for WantedBy=*.service

git at git.openembedded.org git at git.openembedded.org
Sun Dec 16 09:52:16 UTC 2012


Module: meta-openembedded.git
Branch: denzil-next
Commit: 0f17a3fb00c3cef39c09fb51575bcb9d37f09f5b
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=0f17a3fb00c3cef39c09fb51575bcb9d37f09f5b

Author: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
Date:   Mon Sep 17 10:58:09 2012 +0000

meta-systemd: systemd-systemctl-native: Also add support for WantedBy=*.service

Right now there was only WantedBy=*.target, which prevented some services from beeing installed,
  which prevent them from running at boot.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
Signed-off-by: Eric Bénard <eric at eukrea.com>

---

 .../systemd/systemd-systemctl-native.bb            |    2 +-
 .../systemd/systemd-systemctl-native/systemctl     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-core/systemd/systemd-systemctl-native.bb b/meta-oe/recipes-core/systemd/systemd-systemctl-native.bb
index 25ddbda..5940584 100644
--- a/meta-oe/recipes-core/systemd/systemd-systemctl-native.bb
+++ b/meta-oe/recipes-core/systemd/systemd-systemctl-native.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "Wrapper to enable of systemd services"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
 
-PR = "r5"
+PR = "r6"
 
 inherit native
 
diff --git a/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl b/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl
index 196e729..6b8832b 100755
--- a/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl
+++ b/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl
@@ -81,7 +81,7 @@ for service in $services; do
 	wanted_by=$(grep WantedBy $ROOT/$service_file \
 		        | sed 's,WantedBy=,,g' \
 		        | tr ',' '\n' \
-		        | grep '\.target$')
+		        | grep '\(\.target$\)\|\(\.service$\)')
 
 	for r in $wanted_by; do
 		echo "WantedBy=$r found in $service"





More information about the Openembedded-commits mailing list