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

Possibility to run websocket server in background (demonizing) #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Alarmfifa
Copy link
Contributor

Added two console commands:

  websocket:start                         Start websocket server daemon
  websocket:stop                          Stop websocket server

Logs from wrench server are written via Symfony's Monolog in the configured file (see app/config).
Script is launched, forked and works in backgroud. For managing uses pid file (in temp directory) with process number. When we want to stop it, script sends sigterm signal to daemon process and deletes pid file. Daemon gets sigterm and stops loop.
Until there is no possibility in vanilla Wrench\Server we have to redefine it. So, this daemon requires to add into config file:

class : Varspool\WebsocketBundle\Server\DaemonServer 

If everything is ok, I can add a small manual to redme file about launching websocket server as a daemon.

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

Successfully merging this pull request may close these issues.

1 participant