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

Restart botty after crashing #13

Open
gilbertsoft opened this issue Oct 23, 2019 · 0 comments
Open

Restart botty after crashing #13

gilbertsoft opened this issue Oct 23, 2019 · 0 comments

Comments

@gilbertsoft
Copy link

gilbertsoft commented Oct 23, 2019

Excpected behavior

Botty should be able to restart itself after a crash.

Actual behavior

Because of the nature of PHP the script can crash at any time and the daemon must restarted manually. See https://software-gunslinger.tumblr.com/post/47131406821/php-is-meant-to-die for more information about the behavior of PHP.

After some tests it seems Botty looses the connection to Slack, the script is still running and does not crash.

gilbertsoft added a commit to gilbertsoft/T3Bot that referenced this issue Oct 23, 2019
This script tries to catch the situation when the PHP scripts crashes and the daemon must be restarted afterwards manually by introducing another loop directly in bash. The loop will be terminated after the PIDFILE was deleted by the calling the stop action.

Solves NeoBlack#13
gilbertsoft added a commit to gilbertsoft/T3Bot that referenced this issue Oct 31, 2019
This patch ensures the connection to Slack by periodically restart the connection.

Solves NeoBlack#13
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