O
O
Octoberfest2016-12-13 07:54:38
linux
Octoberfest, 2016-12-13 07:54:38

How to make the php script restart itself on error or lost connections?

Hello. Decided to try Ratchet php (socketo.me). But now the question is, everything is fine, the WS server is up and running, but how can I guarantee that if it crashes, it will restart? What tools can be used for this? Need to write your own daemon?
It is very important that the script with the WS server always works. And in the event of a crash or restart of the system, it started again.
PS Server on Debian 8
Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question