start 322 B

12345678910111213141516
  1. #!/bin/bash
  2. ps waux | grep node | grep -v grep
  3. echo "starting ..."
  4. ## note: start as root, pass env vars to sudo param, this app will downgrade itself once it has initialized
  5. sudo -E forever app.js &> log.txt &
  6. cd etherpad-lite/node
  7. forever server.js &> log.txt &
  8. cd ../..
  9. sleep 3
  10. ps waux | grep node | grep -v grep