[yocto] selectively enabling/disabling multiple systemd services in recipes
Andrea Galbusera
gizero at gmail.com
Thu Mar 29 07:24:26 PDT 2018
Hi!
I know a recipe can list more than one service in SYSTEMD_SERVICE
variable. Then, is there a way to selectively enable/disable each of
them? To me, it looks like SYSTEMD_AUTO_ENABLE acts globally on every
service in the above list.
I have a recipe which provides a single executable (/usr/bin/foo), a
template service file (foo at .service) and two service instances which
runs the executable with different configuration arguments
(foo at bar.service and foo at baz.service).
I'm considering splitting into separate packages then allowing
configuration to optionally override SYSTEMD_AUTO_ENABLE package-wise.
Is that the preferred way to achieve this goal?
More information about the yocto
mailing list