Skip to content

Commit

Permalink
SERVER-17780 Update init script process ulimit to match recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
ehershey committed Mar 30, 2015
1 parent ef19e26 commit 47f7671
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions debian/init.d
Expand Up @@ -133,9 +133,9 @@ start_server() {
# In bash, it's -u # In bash, it's -u
if readlink /proc/$$/exe | grep -q dash if readlink /proc/$$/exe | grep -q dash
then then
ulimit -p 32000 ulimit -p 64000
else else
ulimit -u 32000 ulimit -u 64000
fi fi


# Start the process using the wrapper # Start the process using the wrapper
Expand Down
2 changes: 1 addition & 1 deletion rpm/init.d-mongod
Expand Up @@ -57,7 +57,7 @@ start()
ulimit -v unlimited ulimit -v unlimited
ulimit -n 64000 ulimit -n 64000
ulimit -m unlimited ulimit -m unlimited
ulimit -u 32000 ulimit -u 64000


echo -n $"Starting mongod: " echo -n $"Starting mongod: "
daemon --user "$MONGO_USER" --check $mongod "$NUMACTL $mongod $OPTIONS >/dev/null 2>&1" daemon --user "$MONGO_USER" --check $mongod "$NUMACTL $mongod $OPTIONS >/dev/null 2>&1"
Expand Down
2 changes: 1 addition & 1 deletion rpm/init.d-mongod.suse
Expand Up @@ -62,7 +62,7 @@ start()
ulimit -v unlimited ulimit -v unlimited
ulimit -n 64000 ulimit -n 64000
ulimit -m unlimited ulimit -m unlimited
ulimit -u 32000 ulimit -u 64000


echo -n "Starting mongod: " echo -n "Starting mongod: "
$NUMACTL /sbin/start_daemon -u "$MONGO_USER" -p "$PIDFILEPATH" $mongod $OPTIONS >/dev/null 2>&1 $NUMACTL /sbin/start_daemon -u "$MONGO_USER" -p "$PIDFILEPATH" $mongod $OPTIONS >/dev/null 2>&1
Expand Down

0 comments on commit 47f7671

Please sign in to comment.