when a systemd service is not listed in "SYSTEMD_PACKAGES"
A message that is not in the archive (sent off-list or not yet received): [email protected]
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_URIincludes 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 inSYSTEMD_PACKAGES.is that the right interpretation? or am i missing something?
never mind, i think i see what i misunderstood.
rday