#!/bin/bash websocket_url=$(CreoleGet adresse_ip_eth0 non) websocket_portinterne=$(CreoleGet ninegate_websocket_portinterne non) # Server Websocket echo WEBSOCKET = STOP pid="$(pgrep -f gos:websocket)" if [ -n "${pid}" ]; then kill -9 ${pid}; fi echo WEBSOCKET = START bin/console gos:websocket:server --port $websocket_portinterne -a $websocket_url --no-debug -n -q --env=prod & disown