dhcp-done: Write status at startup
We want the initial status file to be available as soon as the service
starts, so we never produce an error about reading the file contents.
This has a side benefit that the DHCP processes don't need to write out
a status file until they have acquired lease information from the
server.
Change-Id: Ieedb14f1ab3927bcd5f13ad684309c163c920fef
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/subprojects/dhcp-done/dhcp-done.service.in b/subprojects/dhcp-done/dhcp-done.service.in
index 1c66551..f9bd1e8 100644
--- a/subprojects/dhcp-done/dhcp-done.service.in
+++ b/subprojects/dhcp-done/dhcp-done.service.in
@@ -3,6 +3,7 @@
[Service]
Restart=on-failure
+ExecStartPre=update-dhcp-status 'ONGOING' 'Waiting on dhcp process'
ExecStart=@@BIN@ dhcp-done
[Install]