AWS Thinkbox Discussion Forums

maintenance job -> reboot machine?

Could a maintenance job trigger a machine reboot somehow?

You could probably have the job run “C:\Windows\System32\shutdown.exe /r /t xxx” where xxx is the number of seconds before the machine restarts. By delaying the shutdown, the slave should have time to mark its task as complete before the restart happens. Note that I’m assuming this command exits immediately, and not after the countdown timer reaches 0.

I ended up using deadlineslave -aftertask “RestartMachine” as a command line process at the start of the task. About to test it today, do you think that would work?

Yeah, I think that should work.

Privacy | Site terms | Cookie preferences