diff options
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host')
2 files changed, 25 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host/op-stop-host@.service b/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host/op-stop-host@.service new file mode 100644 index 000000000..83c16bb27 --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host/op-stop-host@.service @@ -0,0 +1,12 @@ +[Unit] +Description=Soft power off of the host + +[Service] +Restart=no +Type=oneshot +RemainAfterExit=yes +ExecStart={sbindir}/mapper call /org/openbmc/HostServices org.openbmc.HostServices SoftPowerOff +Conflicts=obmc-chassis-start@%i.target + +[Install] +WantedBy=obmc-stop-host@%i.target diff --git a/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host/org.openbmc.HostServices.service b/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host/org.openbmc.HostServices.service new file mode 100644 index 000000000..9e60796cd --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host/org.openbmc.HostServices.service @@ -0,0 +1,13 @@ +[Unit] +Description=Phosphor Inband IPMI +Wants=clear-once.service +After=clear-once.service + +[Service] +Restart=always +ExecStart={sbindir}/ipmid +Type=dbus +BusName={BUSNAME} + +[Install] +WantedBy={SYSTEMD_DEFAULT_TARGET} |