Skip to content

Commit

Permalink
Run mongo with exec instead of eval, in order to properly receive TER…
Browse files Browse the repository at this point in the history
…M signal
  • Loading branch information
bercab committed Dec 23, 2014
1 parent 8d901c2 commit bf87626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.sh
Expand Up @@ -10,10 +10,10 @@ else
fi

if [ ! -f /data/db/mongod.lock ]; then
eval $mongodb
exec $mongodb
else
export mongodb=$mongodb' --dbpath /data/db'
rm /data/db/mongod.lock
mongod --dbpath /data/db --repair && eval $mongodb
mongod --dbpath /data/db --repair && exec $mongodb
fi

0 comments on commit bf87626

Please sign in to comment.