1234567891011121314151617181920 |
- #!/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
|