meta-phosphor: move all services to multi-user.target
Instead of obmc-standby.target, use multi-user.target. This can be
accomplished by changing the definition of SYSTEMD_DEFAULT_TARGET first,
however, the explosive approach by removing that variable and
hard-coding multi-user.target provides a single-step.
Note: This patchset represents effectively the wholesale change of all
services in the meta-phosphor layer as well as the targets. There are
other parts of OpenBMC that leverage the default variable.
Change-Id: I2b3b2274dd6b32d3832d6e768c26b2607f0ce71c
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/recipes-phosphor/network/inarp/inarp.service b/recipes-phosphor/network/inarp/inarp.service
index 5d26559..6e85131 100644
--- a/recipes-phosphor/network/inarp/inarp.service
+++ b/recipes-phosphor/network/inarp/inarp.service
@@ -7,4 +7,4 @@
Restart=always
[Install]
-WantedBy={SYSTEMD_DEFAULT_TARGET}
+WantedBy=multi-user.target
diff --git a/recipes-phosphor/network/network_git.bb b/recipes-phosphor/network/network_git.bb
index 82c276f..aa6addb 100644
--- a/recipes-phosphor/network/network_git.bb
+++ b/recipes-phosphor/network/network_git.bb
@@ -25,8 +25,7 @@
SERVICE_FILE = "xyz.openbmc_project.Network.service"
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} += "${SERVICE_FILE}"
-SYSTEMD_DEFAULT_TARGET ?= "obmc-standby.target"
EXTRA_OECONF = " \
- SYSTEMD_TARGET="${SYSTEMD_DEFAULT_TARGET}" \
+ SYSTEMD_TARGET="multi-user.target" \
"
diff --git a/recipes-phosphor/network/phosphor-snmp/xyz.openbmc_project.Network.SNMP.service b/recipes-phosphor/network/phosphor-snmp/xyz.openbmc_project.Network.SNMP.service
index f5a1d72..6b7ffcd 100644
--- a/recipes-phosphor/network/phosphor-snmp/xyz.openbmc_project.Network.SNMP.service
+++ b/recipes-phosphor/network/phosphor-snmp/xyz.openbmc_project.Network.SNMP.service
@@ -10,4 +10,4 @@
BusName=xyz.openbmc_project.Network.SNMP
[Install]
-WantedBy={SYSTEMD_DEFAULT_TARGET}
+WantedBy=multi-user.target