exomic wrote:
Hi,
I'm running a Centos 6.3 server and I want to start my Websocket server on startup. For that I need to run a screen session and within the session run the command
Code:
node websocketServer.js
So I tried adding this line at the end of rc.local:
Code:
su websocket -c "screen -S ws -d -m /var/includes/websocket/start.sh"
In start.sh :
Code:
cd /var/includes/websocket; node websocketServer.js;
start.sh is executable
Any help?
PS: The command is working fine in shell as root