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://sshd@.service \
  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 *
sshd@.service:After=sshdgenkeys.service
sshd.socket:Wants=sshdgenkeys.service
$

  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?

rday
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#159582): 
https://lists.openembedded.org/g/openembedded-core/message/159582
Mute This Topic: https://lists.openembedded.org/mt/87675663/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to