summaryrefslogtreecommitdiffstats
path: root/meta-phosphor
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2016-08-08 10:51:30 -0500
committerPatrick Williams <patrick@stwcx.xyz>2016-08-08 18:34:42 +0000
commit1d600203ed583ed0648c14279ae68f1cae8f1bc0 (patch)
treed9e5f7590ed7f084202469421963461197680e4e /meta-phosphor
parent5f07751332d733a14f46b721ae7e13f370289386 (diff)
downloadtalos-openbmc-1d600203ed583ed0648c14279ae68f1cae8f1bc0.tar.gz
talos-openbmc-1d600203ed583ed0648c14279ae68f1cae8f1bc0.zip
Make REST server process depend on networkd
Whenever networkd restarts, like when network configuration changes, restart the rest server to avoid it getting hung if there are pending REST transaction when the network configuration changed. Use PartOf in the service file because from the systemd documentation, this option is limited to stopping and restarting of units, which is the only desire at this time. This is a temporary workound until a resolution is found, see issues below. Refer to openbmc/phosphor-rest-server#24 Refer to openbmc/openbmc#501 Change-Id: I6198583506d24e3a90baa6eaaf4f94e612c3d3a5 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'meta-phosphor')
-rw-r--r--meta-phosphor/common/recipes-phosphor/dbus/obmc-rest/obmc-rest.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/dbus/obmc-rest/obmc-rest.service b/meta-phosphor/common/recipes-phosphor/dbus/obmc-rest/obmc-rest.service
index 4defe5e96..6647e61f6 100644
--- a/meta-phosphor/common/recipes-phosphor/dbus/obmc-rest/obmc-rest.service
+++ b/meta-phosphor/common/recipes-phosphor/dbus/obmc-rest/obmc-rest.service
@@ -2,6 +2,7 @@
Description=Phosphor OpenBMC DBus REST daemon
Requires=org.openbmc.ObjectMapper.service
After=org.openbmc.ObjectMapper.service
+PartOf=systemd-networkd.service
[Service]
Restart=always
OpenPOWER on IntegriCloud