Feature Request: Restart process when they crash/close
bratao opened this issue · comments
Hello,
Thank you for this awesome project.
Would be nice if CommandTrayHost could automatically restart processes when they crash/close.
You should try crontab_config
"crontab_config": {
"crontab": "8 */2 15-16 29 2 *",
"method": "start", // start restart stop start_count_stop restart_count_stop
"count": 0, // times to run, 0 infinite
// Optional
"enabled": true,
"log": "commandtrayhost.log", // comment out this line to disable logging
"log_level": 0, // log level 0 1 2
"start_show": false, // comment out to use cache
},
you can add the following setting to your config
"crontab_config": {
"crontab": "0 */1 * * * *", // check every minutes
"method": "start", // start restart stop start_count_stop restart_count_stop
"count": 0, // times to run, 0 infinite
},