title: What is the purpose of the action=reboot parameter for the command Sc failure
body: <p>So I know that the following command would cause the windows service to restart after 30 seconds.</p>
  
  <pre><code>sc failure %SERVICE_NAME% reset= 60 actions= restart/30000 
  </code></pre>
  
  <p>In this article here: <a href="https://technet.microsoft.com/en-us/library/cc742019.aspx#BKMK_examples" rel="nofollow">https://technet.microsoft.com/en-us/library/cc742019.aspx#BKMK_examples</a></p>
  
  <p>They have the following example command:</p>
  
  <pre><code>sc failure myservice reset= 3600 reboot= "MyService crashed -- rebooting machine" command= "%windir%\MyServiceRecovery.exe" actions= restart/5000/run/10000/reboot/60000
  </code></pre>
  
  <p>Can anyone please explain what the reboot action does?</p>
  
  <p>My guess is that it first broadcasts the message in specified in the reboot parameter and then runs the executable in the command parameter.</p>