Merge "[Fullstack] Respawn dhclient process in case of error" into stable/pike
This commit is contained in:
commit
8d2c26a1c7
|
@ -137,7 +137,8 @@ class FakeFullstackMachine(machine_fixtures.FakeMachineBase):
|
|||
cmd = ["dhclient", '-sf', self.NO_RESOLV_CONF_DHCLIENT_SCRIPT_PATH,
|
||||
'--no-pid', '-d', self.port.name]
|
||||
self.dhclient_async = async_process.AsyncProcess(
|
||||
cmd, run_as_root=True, namespace=self.namespace)
|
||||
cmd, run_as_root=True, respawn_interval=5,
|
||||
namespace=self.namespace)
|
||||
self.dhclient_async.start()
|
||||
|
||||
def _stop_async_dhclient(self):
|
||||
|
|
Loading…
Reference in New Issue