Restart application on unhandled exception

前端 未结 5 1486
天涯浪人
天涯浪人 2021-01-18 15:20

Is it possible to have a program restart automatically if it crashes?

Something like:

  1. An unhandled exception is thrown.
  2. Release all resources
5条回答
  •  盖世英雄少女心
    2021-01-18 16:11

    If you just catch the exception, it should be possible to just restart your server by internal programming logic without completely restarting the whole program.

提交回复
热议问题