stop 243 B

123456789101112131415
  1. #!/bin/bash
  2. ps waux | grep node | grep -v grep
  3. echo "stopping ..."
  4. sudo forever stopall
  5. forever stopall
  6. sleep 3
  7. ps waux | grep node | grep -v grep
  8. sleep 1
  9. cp log.txt log-$(date +%s).txt
  10. cd etherpad-lite/node
  11. cp log.txt log-$(date +%s).txt