|
I tracked this down. It's not actually due to the "mongo" reference in the init file, although I'm fixing that as well.
When the fix for SERVER-9275 went in - PIDFILE became populated with the pidfilepath from /etc/mongod.conf instead of being blank. The command the init script uses to stop the server is this:
killproc -p "$PIDFILE" -d 300 /usr/bin/mongod
With a blank argument to -p, killproc works fine. With an argument that isn't actually a pidfile containing a running mongod pid, it fails.
In addition, mongod isn't creating a pid file because we don't create /var/run/mongodb/ for it to create it in. Fixing SERVER-7708 will fix this.
|