run.sh 109 B

12345678
  1. #!/bin/sh
  2. trap cleanup 0 1 2 3 6 15
  3. cleanup()
  4. {
  5. pkill -2 mongod
  6. }
  7. exec "/usr/bin/mongod" "$@" &
  8. wait