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: 30dd43ca9ff63d2ed40b2ed2206afb9d3c29cf1e
  1. classes/
  2. common/
  3. conf/
  4. COPYING.apache-2.0
  5. COPYING.MIT
  6. LICENSE