From 555f9f1c1e6b724fe7de468054b14b952bbcfb58 Mon Sep 17 00:00:00 2001 From: Raptor Engineering Development Team Date: Sun, 21 Jan 2018 06:41:07 -0600 Subject: Enable OCC service after IPL completion --- meta-phosphor/common/recipes-core/systemd/obmc-targets.bb | 3 ++- .../systemd/obmc-targets/obmc-host-ipl-complete@.target | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-host-ipl-complete@.target (limited to 'meta-phosphor') diff --git a/meta-phosphor/common/recipes-core/systemd/obmc-targets.bb b/meta-phosphor/common/recipes-core/systemd/obmc-targets.bb index c3bcd73e1..eb45e89b2 100644 --- a/meta-phosphor/common/recipes-core/systemd/obmc-targets.bb +++ b/meta-phosphor/common/recipes-core/systemd/obmc-targets.bb @@ -41,7 +41,8 @@ HOST_SYNCH_TARGETS = "start-pre starting started stop-pre stopping stopped reset # multiple services and one of them is the quiesce target. # - timeout: Target to run when host watchdog times out # - reboot: Reboot the host -HOST_ACTION_TARGETS = "start stop quiesce reset shutdown crash timeout reboot" +# - ipl-complete: IPL has finished, OK to start OCC monitors +HOST_ACTION_TARGETS = "start stop quiesce reset shutdown crash timeout reboot ipl-complete" CHASSIS_SYNCH_FMT = "obmc-power-{0}@.target" CHASSIS_ACTION_FMT = "obmc-chassis-{0}@.target" diff --git a/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-host-ipl-complete@.target b/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-host-ipl-complete@.target new file mode 100644 index 000000000..2c8614595 --- /dev/null +++ b/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-host-ipl-complete@.target @@ -0,0 +1,8 @@ +[Unit] +Description=Host%i IPL Complete +Wants={SYSTEMD_DEFAULT_TARGET} +After={SYSTEMD_DEFAULT_TARGET} +Conflicts=obmc-host-stop@%i.target +RefuseManualStop=yes +ConditionPathExists=/run/openbmc/host@0-ipl-complete +Wants=op-occ-enable@%i.service -- cgit v1.2.1