echocat/puppet-mongodb — pull request #47 by omehegan (2014-09-30 20:22:23+00:00)
Title: Make init script really work in Debian distros

We should not pass the --make-pidfile argument to start-stop-daemon in Debian-based distros, because mongod creates the pidfile for us based on the value of pidfilepath in the mongod.conf. When we try to have start-stop-daemon create the file also, it ends up having the wrong pid in it, so subsequent init attempts don't work.