CommandTrayHost icon indicating copy to clipboard operation
CommandTrayHost copied to clipboard

Feature Request: Restart process when they crash/close

Open bratao opened this issue 7 years ago • 1 comments

Hello,

Thank you for this awesome project.

Would be nice if CommandTrayHost could automatically restart processes when they crash/close.

bratao avatar Jun 06 '18 16:06 bratao

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
            },

rexdf avatar Jun 07 '18 13:06 rexdf