when a systemd service is not listed in "SYSTEMD_PACKAGES"
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 $
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