diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2017-01-20 06:20:46 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-01-20 06:20:49 +0300 |
commit | 9e206396d08360bf8248e571d07337cd75ad8fe0 (patch) | |
tree | 36b8324d9e3c9b440ad372b5e10ebc5b4e90a013 /meta-phosphor/common/recipes-phosphor/state/files | |
parent | 48b42e0086847aa8b87b4102d7af315d91f3b45d (diff) | |
download | openbmc-9e206396d08360bf8248e571d07337cd75ad8fe0.tar.xz |
phosphor-state-manager: remove daemon duplication
The phosphor-state-manager repository builds [at least] two executables:
* phosphor-host-state-manager
* phosphor-chassis-state-manager
phosphor-host-state-manager.bb and phosphor-chassis-state-manager.bb
were effectively the exact same file and had no assignment of
executables to files. The result was that both packages installed both
daemons and caused an installation collision.
Combine the two recipes into a single recipe with the correct package
relationship for each executable.
Change-Id: I76a1e598bebc5090ae374271bbd5e8e32967cb43
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/state/files')
2 files changed, 28 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Chassis.service b/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Chassis.service new file mode 100644 index 0000000000..5133fad04a --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Chassis.service @@ -0,0 +1,14 @@ +[Unit] +Description=Phosphor Chassis State Manager +Wants=mapper-wait@-org-openbmc-managers-System.service +After=mapper-wait@-org-openbmc-managers-System.service +Before=mapper-wait@-xyz-openbmc_project-state-chassis.service + +[Service] +ExecStart={sbindir}/phosphor-chassis-state-manager +Restart=always +Type=dbus +BusName={BUSNAME} + +[Install] +WantedBy={SYSTEMD_DEFAULT_TARGET} diff --git a/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Host.service b/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Host.service new file mode 100644 index 0000000000..8fd2ed351a --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Host.service @@ -0,0 +1,14 @@ +[Unit] +Description=Phosphor Host State Manager +Wants=mapper-wait@-org-openbmc-managers-System.service +After=mapper-wait@-org-openbmc-managers-System.service +Before=mapper-wait@-xyz-openbmc_project-state-host.service + +[Service] +ExecStart={sbindir}/phosphor-host-state-manager +Restart=always +Type=dbus +BusName={BUSNAME} + +[Install] +WantedBy={SYSTEMD_DEFAULT_TARGET} |