Permalink
Browse files

Wait 300s for server shutdown in deb initscripts. SERVER-2041, maybe.

Re: SERVER-2041, I can't reproduce the behavior the user reports, but
it could be a timing issue where the running mongod hasn't finished
shutting down before the next mongod tries to start.
  • Loading branch information...
1 parent 9f74a01 commit c0dc0be108b09a94ac6ce571869266e7f24c68c6 @kreuter kreuter committed Mar 17, 2011
Showing with 3 additions and 0 deletions.
  1. +1 −0 debian/init.d
  2. +2 −0 debian/mongodb.upstart
View
@@ -127,6 +127,7 @@ start_server() {
stop_server() {
# Stop the process using the wrapper
start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+ --retry 300 \
--user $DAEMONUSER \
--exec $DAEMON
errcode=$?
View
@@ -2,6 +2,8 @@
limit nofile 20000 20000
+kill timeout 300 # wait 300s between SIGTERM and SIGKILL.
+
pre-start script
mkdir -p /var/lib/mongodb/
mkdir -p /var/log/mongodb/

0 comments on commit c0dc0be

Please sign in to comment.