...
Code Block | ||
---|---|---|
| ||
; add the following lines to the installation.ini runtimeOptions.plugins.active[] = "editor_Plugins_FrontEndMessageBus_Init" runtimeOptions.plugins.FrontEndMessageBus.socketServer.httpHost = SET.A.VALID.HOSTNAME.HERE ; MUST be the same as above in httpHost |
Starting the socket server
For basic usage the socket server can be run directly via commandline by calling the server.php in the FrontendMessageBus directory:
Code Block |
---|
php server.php |
For productive usage the server.php should be run as daemon, for example with supervisord as recommended in the documentation of the used ratchet library.
For installation of supervisord see http://supervisord.org/installing.html and for running http://supervisord.org/running.html.
For integration of supervisord in boot up, either a start script was provided by your linux distribution or follow the instructions in: https://serverfault.com/questions/96499/how-to-automatically-start-supervisord-on-linux-ubuntu
supervisord configuration
Follow the supervisor installation instructions to create proper config templates.
Then create a program section for translate5 messagebus:
Code Block | ||
---|---|---|
| ||
[program:t5socketserver]
command = bash -c "exec /usr/bin/php /pathToMessageBus/server.php"
process_name = Translate5SocketServer
numprocs = 1
autostart = true
autorestart = true
user = t5messagebus
stdout_logfile = /var/log/supervisor/t5-messagebus.log
stdout_logfile_maxbytes = 1MB
stderr_logfile = /var/log/supervisor/t5-messagebus-error.log
stderr_logfile_maxbytes = 1MB
|