Tuesday, 19 April 2016

Mongod is not stopping properly on Centos6.5

Just change the following line on function mongo_killproc() in mongod init script[line 94],
# vim /etc/init.d/mongod

local pid=`pidof ${procname}`

instead of

local pid=`pidofproc -p "${pid_file}" ${procname}`

No comments:

Post a Comment