Job - kill processes that run more than a defined lifetime.
Publish: Dotnet publish on root
Fields:
- ProcessName - string
- MaxProcessLifetime - int (minutes)
- MonitorPeriod - int (minutes)
Example:
.\ProcessMonitor.exe Notepad 5 1
To use MaxProcessLifetime and MonitorPeriod defaults, change flag UseDefaults on appsettings to true and run without set MaxProcessLifetime or MonitorPeriod.
"UseDefaults" : true .\ProcessMonitor.exe Notepad
Log level configuration on appsettings.
"Default": "Information"
Just log to console