Patchwork [meta-oe,4/5] meta-systemd: systemd-systemctl-native: Also add support for WantedBy=*.service

login
register
mail settings
Submitter Martin Jansa
Date Aug. 30, 2012, 9:13 a.m.
Message ID <f0bb19138107f35c3c8bbc30ea01003bc028ff7e.1346317656.git.Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/35527/
State Accepted
Commit f0bb19138107f35c3c8bbc30ea01003bc028ff7e
Headers show

Comments

Martin Jansa - Aug. 30, 2012, 9:13 a.m.
From: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>

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@no-log.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta-systemd/recipes-core/systemd/systemd-systemctl-native.bb        | 2 +-
 meta-systemd/recipes-core/systemd/systemd-systemctl-native/systemctl | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta-systemd/recipes-core/systemd/systemd-systemctl-native.bb b/meta-systemd/recipes-core/systemd/systemd-systemctl-native.bb
index 25ddbda..5940584 100644
--- a/meta-systemd/recipes-core/systemd/systemd-systemctl-native.bb
+++ b/meta-systemd/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-systemd/recipes-core/systemd/systemd-systemctl-native/systemctl b/meta-systemd/recipes-core/systemd/systemd-systemctl-native/systemctl
index 5c21e7f..d71c7ed 100755
--- a/meta-systemd/recipes-core/systemd/systemd-systemctl-native/systemctl
+++ b/meta-systemd/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"