Skip to contentSkip to conversation

couple observations about SYSTEMD_SERVICE explanations

DISCUSSION Robert P. J. Day 1 participant 1 message Aug 27, 2021

lore
Share & tools
lore
#0 lore raw

just noticed a couple things. first, the glossary bit here:

http://docs.yoctoproject.org/ref-manual/variables.html#term-SYSTEMD_SERVICE

implies that that variable contains only *one* entry:

"When inheriting the systemd class, this variable specifies the

                                                            ^^^

systemd service name for a package."

that's obviously not true, as it might contain a number of values:

meta/recipes-extended/cups/cups.inc:
SYSTEMD_SERVICE:${PN} = "cups.socket cups.path cups.service cups-lpd.socket"

also, i just noticed the existence of the apparently undocumented variable SYSTEMD_SERVICE_ESCAPED:

$ grep -r SYSTEMD_SERVICE_ESCAPED *
systemd.bbclass:		for service in ${SYSTEMD_SERVICE_ESCAPED}; do
systemd.bbclass:		systemctl preset ${SYSTEMD_SERVICE_ESCAPED}
systemd.bbclass:			systemctl --no-block restart ${SYSTEMD_SERVICE_ESCAPED}
systemd.bbclass:		systemctl stop ${SYSTEMD_SERVICE_ESCAPED}
systemd.bbclass:		systemctl disable ${SYSTEMD_SERVICE_ESCAPED}
systemd.bbclass:        d.setVar('SYSTEMD_SERVICE_ESCAPED:' + pkg, paths_escaped)

rday