Created
March 13, 2015 20:27
-
-
Save nocubicles/8dd86203467b85397240 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GNU nano 2.2.6 File: mongod.conf | |
| CONF=/etc/mongod.conf | |
| DAEMON=/usr/bin/mongod | |
| DAEMONUSER=${DAEMONUSER:-mongodb} | |
| if [ -f /etc/default/mongod ]; then . /etc/default/mongod; fi | |
| # Handle NUMA access to CPUs (SERVER-3574) | |
| # This verifies the existence of numactl as well as testing that the command works | |
| NUMACTL_ARGS="--interleave=all" | |
| if which numactl >/dev/null 2>/dev/null && numactl $NUMACTL_ARGS ls / >/dev/null 2>/dev/null | |
| then | |
| NUMACTL="$(which numactl) -- $NUMACTL_ARGS" | |
| DAEMON_OPTS=${DAEMON_OPTS:-"--config $CONF"} | |
| else | |
| NUMACTL="" | |
| DAEMON_OPTS="-- "${DAEMON_OPTS:-"--config $CONF"} | |
| fi | |
| if [ "x$ENABLE_MONGOD" = "xyes" ] | |
| then | |
| exec start-stop-daemon --start --chuid $DAEMONUSER --exec $NUMACTL $DAEMON $DAEMON_OPTS | |
| fi | |
| end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment