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

what should program do if it started failed ? #158

Open
forstef opened this issue Dec 19, 2018 · 0 comments
Open

what should program do if it started failed ? #158

forstef opened this issue Dec 19, 2018 · 0 comments

Comments

@forstef
Copy link

forstef commented Dec 19, 2018

In my case, there are something about checking environment when program is starting over. If the check things are not correct, the program should stop.
But what should I do to this framework if it check/start failed ?
I found if I put checking things in Start() and return no nil error , service still started successfully and seems normal, nothing wrong happened, you can also stop the service, but there was no program process in ps, the service entered the restart cycle to restart program continually.
when I put checking things in run() and return no nil error, service still started successfully and seems normal, nothing wrong happened, you can also stop the service, and there was a program process in ps.

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

1 participant