On one of the projects on Yii2 I use sockets. The socket server is started by the command
php yii socket/start-socket I run it by adding & at the end that it would work in the background. But time passes, and he is cut down and I cannot understand why.
Is it possible to create some kind of script that will check the server and, in the event of a crash, restart it?