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

how to run server in daemon mode? #203

Closed
sidealice opened this issue Jun 25, 2019 · 4 comments
Closed

how to run server in daemon mode? #203

sidealice opened this issue Jun 25, 2019 · 4 comments
Labels

Comments

@sidealice
Copy link

how to run tcp/http server in daemon(backend) with socket module?

thanks

@clue clue added the question label Jun 28, 2019
@clue
Copy link
Member

clue commented Jun 28, 2019

@sidealice Welcome to @reactphp 🎉

Unlike traditional PHP code, this project is usually used in a long running process. How you keep this process running in the background is left up to your environment, but most people use systemd, supervisord or docker to run and monitor this process, see also https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6 as a starting point.

I believe this has been answered, so I'm closing this for now. Please come back with more details if this problem persists and we can reopen this 👍

@clue clue closed this as completed Jun 28, 2019
@kailasb10
Copy link

I've set the server to run continuously using supervisor but I've to restart the supervisor manually every day at midnight to work properly for the day.

How can we avoid this?

@WyriHaximus
Copy link
Member

@kailasb10 Is this the same issue as you opened #259 for?

@kailasb10
Copy link

yes. I've found the issue. you can see the solution at https://github.com/reactphp/socket/issues/259

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

No branches or pull requests

4 participants