Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 21 lines (14 sloc) 392 Bytes
#!/bin/bash
ps waux | grep node | grep -v grep
echo "starting ..."
if [ "$(id -u)" != "0" ]; then
## note: start as root, pass env vars to sudo param, this app will downgrade itself once it has initialized
sudo -E forever app.js &> log.txt &
else
forever app.js &> log.txt &
fi
cd etherpad-lite/node
forever server.js &> log.txt &
cd ../..
sleep 3
ps waux | grep node | grep -v grep