Skip to contentSkip to conversation

when a systemd service is not listed in "SYSTEMD_PACKAGES"

OE-core Robert P. J. Day 1 participant 1 message Dec 12, 2021 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 25 lines · Robert P. J. Day

was writing up a wiki page for colleagues at my current gig about
the proper definition of systemd services, and noticed the following oddity(?).

in current poky master branch, openssh recipe, SRC_URI includes the
following two lines:

  file://[email protected] \
  file://sshdgenkeys.service \

fair enough, two systemd services. however, further down the recipe file, only one of them is included in:

  SYSTEMD_PACKAGES = "${PN}-sshd"
  SYSTEMD_SERVICE:${PN}-sshd = "sshd.socket"

so what happened to the service sshdgenkeys? ah, if one looks in the files being installed by openssh for that string:

$ grep sshdgenkeys *
[email protected]:After=sshdgenkeys.service
sshd.socket:Wants=sshdgenkeys.service
$
Quoted 5 lines

so i am *assuming* that even though sshdgenkeys is an actual systemd
service, it will only be invoked via the sshd service or socket units, and therefore does not need to be included in SYSTEMD_PACKAGES.

is that the right interpretation? or am i missing something?

never mind, i think i see what i misunderstood.

rday