meta-google: gbmc-bridge: Remove status when dhcp process stops We don't want stale ongoing flags left in the filesystem and reported to the installer, if we terminate we should delete the status file entirely to convey DHCP is stopped. Tested: Verified that stopping the service deletes the file Change-Id: I98a4a9e7a35c2235ab02db9af39a99b4d4bfb701 Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-dhcp@.service b/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-dhcp@.service index c13b9fb..942c13d 100644 --- a/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-dhcp@.service +++ b/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-dhcp@.service
@@ -10,6 +10,7 @@ Restart=on-failure RestartSec=5 ExecStart=/usr/bin/udhcpc6 -f -q -O fqdn -O bootfile_url -O bootfile_param -i %I -s /usr/libexec/gbmc-br-dhcp.sh ${GBMCBR_VENDOR_CLASS_V6} +ExecStopPost=-/bin/rm -f /run/dhcp_status [Install] WantedBy=multi-user.target