fork download
  1. #!/bin/bash
  2. set -e
  3.  
  4. if [ "${1:0:1}" = '-' ]; then
  5. set -- mongod "$@"
  6. fi
  7.  
  8. if [ "$1" = 'mongod' ]; then
  9. chown -R mongodb /data/db
  10.  
  11. numa='numactl --interleave=all'
  12. if $numa true &> /dev/null; then
  13. set -- $numa "$@"
  14. fi
  15.  
  16. exec gosu mongodb "$@"
  17. fi
  18.  
  19. exec "$@"
  20.  
Success #stdin #stdout 0s 5084KB
stdin
Standard input is empty
stdout
Standard output is empty