RestartOnCrash is very simple .NET Core application that restarts a given application when not running.
All you have to do is to configure it with configuration.json
file and run the application:
{
"PathToApplicationToMonitor": "C:\\Program Files (x86)\\AnApplicationThatMayCrash.exe",
"CheckInterval": "00:00:10",
"StartApplicationOnlyAfterFirstExecution": true
}
PathToApplicationToMonitor
: self explainatory. At the moment there is the support for just one applicationCheckInterval
: it is a serializedTimeSpan
. It represents the interval at whichRestartOnCrash
checks for the target applicaton healthStartApplicationOnlyAfterFirstExecution
: if false, whenRestartOnCrash
starts, it starts also the process of the target application; otherwise it waits for the target application to be started the first manually
- Make a simple GUI (Maybe WPF) for
RestartOnCrash
, in order to give the user the possibility to select the target application, to configure the settings - Add a tray icon for the application and ensure that just one
RestartOnCrash
is running at time. Add a contextual menù to the tray icon to temporary stop it from restarting the application - Make
RestartOnCrash
multi-application - Any suggestions? :-)