How to restart program automatically if it crashes in Windows?

前端 未结 7 1373
走了就别回头了
走了就别回头了 2020-12-30 05:56

How can I start my program automatically if it crashes on windows 2003 server? Sometimes my program just crashes, is there a way in windows or settings that I can set?

7条回答
  •  北荒
    北荒 (楼主)
    2020-12-30 06:17

    Unfortunately there are no settings in Windows to automatically restart a regular program when it crashes.

    Do you need to actively interact with your application's GUI? Some of the Service Wrappers (designed to run any application as a Windows Service) will monitor your application and restart it when it fails, but be sure investigate Session 0 Isolation to ensure that it won't get in the way.

提交回复
热议问题