JDare / ClankBundle

A Symfony2 Bundle for use with Ratchet WebSocket Server
MIT License
131 stars 31 forks source link

how to persist the daemon #6

Open emudojo opened 11 years ago

emudojo commented 11 years ago

I know I can launch the server by issuing php app/console clank:server but that's less than ideal, sending it to the background does not work, any suggestion ?

teagup commented 10 years ago

I used the following command to run it as a background process: nohup php app/console clank:server > /dev/null 2>&1 &

Basically, nohup means that the service won't end after you close the session, while > /dev/null 2>&1 basically directs all outputs from the script to nowhere, and & runs it as a background process.

Merk87 commented 9 years ago

Hi.

I'm trying clank server in a staging server (replication from my prod) and using nohup and & after a while the server stops working, in the nohup file I can see the connections how are connected and disconnected, and the responses from the services, but the messages are not sent, any idea?