This repository has been archived by the owner on Oct 19, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1358561 additional datacenter support (#67)
nodeploy
- Loading branch information
Showing
4 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
userdata/Configuration/GenericWorker/run-hw-generic-worker-and-reboot.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@echo off | ||
|
||
if exist C:\generic-worker\disable-desktop-interrupt.reg reg import C:\generic-worker\disable-desktop-interrupt.reg | ||
|
||
:CheckForStateFlag | ||
if exist C:\dsc\task-claim-state.valid goto RunWorker | ||
timeout /t 1 >nul | ||
goto CheckForStateFlag | ||
|
||
:RunWorker | ||
del /Q /F C:\dsc\task-claim-state.valid | ||
pushd %~dp0 | ||
C:\generic-worker\generic-worker.exe run --config C:\generic-worker\gen_worker.config > C:\generic-worker\generic-worker.log 2>&1 | ||
|
||
shutdown /r /t 0 /f /c "Rebooting as generic worker ran successfully" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters