diff options
author | Adriana Kobylak <anoo@us.ibm.com> | 2016-08-04 15:54:40 -0500 |
---|---|---|
committer | Adriana Kobylak <anoo@us.ibm.com> | 2016-08-04 15:55:28 -0500 |
commit | 413af0a1edd3fcc274e603dff260a7278ef802c1 (patch) | |
tree | 55c8c1f06865de097926f4a1ef568cb0eb250187 | |
parent | d470b1f154b11b86d23438eff1f58d7f592c6d2a (diff) | |
download | talos-openbmc-413af0a1edd3fcc274e603dff260a7278ef802c1.tar.gz talos-openbmc-413af0a1edd3fcc274e603dff260a7278ef802c1.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.
Refer to openbmc/phosphor-rest-server#24
Change-Id: Ie366e833b11800df0341e2ae117c2d9a08600a5e
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
-rw-r--r-- | meta-phosphor/common/recipes-phosphor/dbus/obmc-rest/obmc-rest.service | 1 |
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 a78c86bb9..e8e2a4cb8 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=obmc-mapper.service After=obmc-mapper.service +PartOf=systemd-networkd.service [Service] Restart=always |