Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Restart process when they crash/close #25

Open
bratao opened this issue Jun 6, 2018 · 1 comment
Open

Feature Request: Restart process when they crash/close #25

bratao opened this issue Jun 6, 2018 · 1 comment

Comments

@bratao
Copy link

bratao commented Jun 6, 2018

Hello,

Thank you for this awesome project.

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

@rexdf
Copy link
Owner

rexdf commented Jun 7, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants