From 6a3b4bef5ebb5e32d0bdca2405eb56ea9056c9c2 Mon Sep 17 00:00:00 2001 From: Matt Spinler Date: Tue, 16 May 2017 11:57:20 -0500 Subject: Create obmc-fan-control-ready target This target is started after fans have had time to ramp up to full speed, and will start the fan monitor and control services. Change-Id: I99c1125f038071f56612859d976d5fba3fe9ffd6 Signed-off-by: Matt Spinler --- meta-phosphor/common/recipes-core/systemd/obmc-targets.bb | 3 +++ .../recipes-core/systemd/obmc-targets/obmc-fan-control-ready@.target | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-fan-control-ready@.target (limited to 'meta-phosphor/common/recipes-core') diff --git a/meta-phosphor/common/recipes-core/systemd/obmc-targets.bb b/meta-phosphor/common/recipes-core/systemd/obmc-targets.bb index 1d2c82568..ae530accc 100644 --- a/meta-phosphor/common/recipes-core/systemd/obmc-targets.bb +++ b/meta-phosphor/common/recipes-core/systemd/obmc-targets.bb @@ -46,12 +46,14 @@ CHASSIS_LINK_SYNCH_FMT = "${CHASSIS_SYNCH_FMT}:obmc-power-{0}@{1}.target" CHASSIS_LINK_ACTION_FMT = "${CHASSIS_ACTION_FMT}:obmc-chassis-power{0}@{1}.target" HOST_LINK_SYNCH_FMT = "${HOST_SYNCH_FMT}:obmc-host-{0}@{1}.target" HOST_LINK_ACTION_FMT = "${HOST_ACTION_FMT}:obmc-host-{0}@{1}.target" +FAN_LINK_FMT = "obmc-fan-control-ready@.target:obmc-fan-control-ready@{0}.target" SYSTEMD_SERVICE_${PN} += " \ obmc-mapper.target \ obmc-webserver-pre.target \ obmc-fans-ready.target \ obmc-fan-control.target \ + obmc-fan-control-ready@.target \ obmc-standby.target \ " @@ -64,3 +66,4 @@ SYSTEMD_LINK_${PN} += "${@compose_list(d, 'CHASSIS_LINK_SYNCH_FMT', 'CHASSIS_SYN SYSTEMD_LINK_${PN} += "${@compose_list(d, 'CHASSIS_LINK_ACTION_FMT', 'CHASSIS_ACTION_TARGETS', 'OBMC_CHASSIS_INSTANCES')}" SYSTEMD_LINK_${PN} += "${@compose_list(d, 'HOST_LINK_SYNCH_FMT', 'HOST_SYNCH_TARGETS', 'OBMC_HOST_INSTANCES')}" SYSTEMD_LINK_${PN} += "${@compose_list(d, 'HOST_LINK_ACTION_FMT', 'HOST_ACTION_TARGETS', 'OBMC_HOST_INSTANCES')}" +SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FAN_LINK_FMT', 'OBMC_CHASSIS_INSTANCES')}" diff --git a/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-fan-control-ready@.target b/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-fan-control-ready@.target new file mode 100644 index 000000000..6957b1b93 --- /dev/null +++ b/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-fan-control-ready@.target @@ -0,0 +1,4 @@ +[Unit] +Description=Fan Control Ready +RefuseManualStop=yes +Conflicts=obmc-chassis-poweroff@%i.target -- cgit v1.2.3