Windows Service recovery actions with Appveyor deployment agent

john's Avatar

john

09 Dec, 2016 04:52 PM

Is there a way to set the recovery actions for a windows service deployed with the Appveyor deployment agent?

  1. 1 Posted by Ilya Finkelshte... on 09 Dec, 2016 08:07 PM

    Ilya Finkelshteyn's Avatar

    Ho John,

    I think you can use post-deployment script, in which you can set this with sc.exe command as described here, for example:
    sc.exe failure <your_service_name> reset= 86400 actions= restart/5000

    Thanks!
    Ilya.

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:10 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

09 Jul, 2026 04:35 PM
07 Jul, 2026 07:22 PM
30 Jun, 2026 08:51 PM
26 Jun, 2026 03:33 PM
25 Jun, 2026 12:31 AM

 

05 Jun, 2026 07:28 PM
29 May, 2026 02:17 PM
28 May, 2026 06:46 PM
21 May, 2026 04:32 AM
12 May, 2026 05:50 PM
12 May, 2026 04:16 PM