mongodb/mongo — pull request #341 by kommit (2012-12-17 04:11:04+00:00)
Title: Fixed the problem that the start script not working on some machine with numactl installed.

The init script does not work on my server (Debian 6.0.1).

After I installed numactl, the init script says:
> Starting database: mongodb start-stop-daemon: unrecognized option '--interleave=all'
> Try 'start-stop-daemon --help' for more information.
> failed!

Seems that the --interleave option was passed to start-stop-daemon rather than numactl.

According the solution I found at: http://stackoverflow.com/questions/11161308/starting-mongodb-via-numactl-as-daemon
I moved the numactl command BEFORE the start-stop-daemon command.

Related jira issue: SERVER-3574