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>
1 file changed
tree: d9e5f7590ed7f084202469421963461197680e4e
  1. meta-openbmc-bsp/
  2. meta-openbmc-machines/
  3. meta-phosphor/
  4. yocto-poky/
  5. .gitignore
  6. .gitreview
  7. .templateconf
  8. openbmc-env
  9. README.md
README.md

OpenBMC

Build Status

Building

OpenBMC uses Yocto/Open-Embedded for a build system, which supports an out-of-tree build. It is recommended that you create an empty directory somewhere to hold the build. This directory will get big.

On Ubuntu 14.04 the following packages are required to build the default target

sudo apt-get install -y git build-essential libsdl1.2-dev texinfo gawk chrpath diffstat

On Fedora 23 the following packages are required to build the default target:

sudo dnf install -y git patch diffstat texinfo chrpath SDL-devel bitbake
sudo dnf groupinstall "C Development Tools and Libraries"

To start a build:

cd <builddir>
. <repodir>/openbmc-env
bitbake obmc-phosphor-image