Skip to content

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