Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
daemon: Use systemd-run, not machine-config-daemon-host.service
This is the mirror/dual of openshift#1802 With this the MCD (when run as a pod) stops using `machine-config-daemon-host.service`. and creates a dynamic unit instead. With the combination of both, `machine-config-daemon-host.service` is on the path to not being used by default and migrating to a "4.1 bootimage aid". The systemd-run model of creating a unit dynamically is much clearer for what we want here; conceptually the service is just a dynamic child of this pod (if we could we'd tie the lifecycle together). Further: - Let's shorten our systemd unit names by using the `mco-` prefix - Inject the `RPMOSTREE_CLIENT_ID`, see coreos/rpm-ostree@016c1c5 For example, one weird semantic of `systemctl start` is that it "joins" if somehow the service is started for another reason. But here, if somehow two instances of the MCD were running then `systemd-run` will say e.g.: `Failed to start transient service unit: Unit mco-pivot.service already exists.`
- Loading branch information