mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
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@no-log.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Eric Bénard <eric@eukrea.com>
This commit is contained in:
committed by
Eric Bénard
parent
d6dd53c3b6
commit
0f17a3fb00
@@ -3,7 +3,7 @@ DESCRIPTION = "Wrapper to enable of systemd services"
|
|||||||
LICENSE = "MIT"
|
LICENSE = "MIT"
|
||||||
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
|
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
|
||||||
|
|
||||||
PR = "r5"
|
PR = "r6"
|
||||||
|
|
||||||
inherit native
|
inherit native
|
||||||
|
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ for service in $services; do
|
|||||||
wanted_by=$(grep WantedBy $ROOT/$service_file \
|
wanted_by=$(grep WantedBy $ROOT/$service_file \
|
||||||
| sed 's,WantedBy=,,g' \
|
| sed 's,WantedBy=,,g' \
|
||||||
| tr ',' '\n' \
|
| tr ',' '\n' \
|
||||||
| grep '\.target$')
|
| grep '\(\.target$\)\|\(\.service$\)')
|
||||||
|
|
||||||
for r in $wanted_by; do
|
for r in $wanted_by; do
|
||||||
echo "WantedBy=$r found in $service"
|
echo "WantedBy=$r found in $service"
|
||||||
|
|||||||
Reference in New Issue
Block a user