diff --git a/picast_daemon b/picast_daemon index cd1251b..5b7de82 100644 --- a/picast_daemon +++ b/picast_daemon @@ -6,10 +6,10 @@ export NODE_PATH=$NODE_PATH:/usr/local/lib/node_modules case "$1" in start) - exec forever start --sourceDir=~/PiCAST -p /var/run/forever picast.js + exec forever start -uid PiCAST -a --sourceDir=~/PiCAST -p /var/run/forever picast.js ;; stop) - exec forever stop --sourceDir=~/PiCAST picast.js + exec forever stop PiCAST ;; *) echo "Usage: /etc/init.d/picast {start|stop}"