Guest User

Untitled

a guest
Jan 6th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. cd truffle
  4.  
  5. if [ -f 'testrpc.pid' ]; then
  6. echo "killing testrpc on process id $(cat testrpc.pid)"
  7. # Don't fail if the process is already killed
  8. kill -SIGINT $(cat testrpc.pid) || true
  9. rm -f testrpc.pid
  10. else
  11. echo "testrpc.pid not found, doing nothing"
  12. fi
Add Comment
Please, Sign In to add comment