[root@do1h2 ~]# killall mongod [root@do1h2 ~]# ps -ef | grep mongo root 29251 28745 0 11:16 pts/0 00:00:00 grep mongo [root@do1h2 ~]# rm -f /var/run/mongodb/mongod.pid [root@do1h2 ~]# ls -al /var/run/mongodb/ total 8 drwxr-xr-x. 2 mongod mongod 4096 2015-12-11 11:17 . drwxr-xr-x. 20 root root 4096 2015-12-11 11:04 .. [root@do1h2 ~]# /etc/init.d/mongod start Starting mongod: about to fork child process, waiting until server is ready for connections. forked process: 29282 child process started successfully, parent exiting [ OK ] [root@do1h2 ~]# ls -al /var/run/mongodb/ total 12 drwxr-xr-x. 2 mongod mongod 4096 2015-12-11 11:17 . drwxr-xr-x. 20 root root 4096 2015-12-11 11:04 .. -rw-r--r--. 1 mongod mongod 6 2015-12-11 11:17 mongod.pid [root@do1h2 ~]# cat /var/run/mongodb/mongod.pid 29282 [root@do1h2 ~]# bash -x /etc/init.d/mongod stop + . /etc/rc.d/init.d/functions ++ TEXTDOMAIN=initscripts ++ umask 022 ++ PATH=/sbin:/usr/sbin:/bin:/usr/bin ++ export PATH ++ '[' -z '' ']' ++ COLUMNS=80 ++ '[' -z '' ']' +++ /sbin/consoletype ++ CONSOLETYPE=pty ++ '[' -f /etc/sysconfig/i18n -a -z '' -a -z '' ']' ++ . /etc/profile.d/lang.sh ++ unset LANGSH_SOURCED ++ '[' -z '' ']' ++ '[' -f /etc/sysconfig/init ']' ++ . /etc/sysconfig/init +++ BOOTUP=color +++ RES_COL=60 +++ MOVE_TO_COL='echo -en \033[60G' +++ SETCOLOR_SUCCESS='echo -en \033[0;32m' +++ SETCOLOR_FAILURE='echo -en \033[0;31m' +++ SETCOLOR_WARNING='echo -en \033[0;33m' +++ SETCOLOR_NORMAL='echo -en \033[0;39m' +++ PROMPT=yes +++ AUTOSWAP=no +++ ACTIVE_CONSOLES='/dev/tty[1-6]' +++ SINGLE=/sbin/sushell ++ '[' pty = serial ']' ++ __sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d' + CONFIGFILE=/etc/mongod.conf + OPTIONS=' -f /etc/mongod.conf' + SYSCONFIG=/etc/sysconfig/mongod ++ awk '-F[:=]' -v IGNORECASE=1 '/^[[:blank:]]*(processManagement\.)?pidfilepath[[:blank:]]*[:=][[:blank:]]*/{print $2}' /etc/mongod.conf ++ tr -d '[:blank:]"'\''' + PIDFILEPATH=/var/run/mongodb/mongod.pid#locationofpidfile + mongod=/usr/bin/mongod + MONGO_USER=mongod + MONGO_GROUP=mongod + '[' -f /etc/sysconfig/mongod ']' + . /etc/sysconfig/mongod ++ dirname /var/run/mongodb/mongod.pid#locationofpidfile + PIDDIR=/var/run/mongodb + NUMACTL_ARGS=--interleave=all + which numactl + NUMACTL= + RETVAL=0 + case "$1" in + stop + echo -n 'Stopping mongod: ' Stopping mongod: + mongo_killproc /var/run/mongodb/mongod.pid#locationofpidfile /usr/bin/mongod + local pid_file=/var/run/mongodb/mongod.pid#locationofpidfile + local procname=/usr/bin/mongod + local -i delay=300 + local -i duration=10 ++ pidofproc -p /var/run/mongodb/mongod.pid#locationofpidfile /usr/bin/mongod ++ local RC pid pid_file= ++ '[' 3 = 0 ']' ++ '[' -p = -p ']' ++ pid_file=/var/run/mongodb/mongod.pid#locationofpidfile ++ shift 2 ++ fail_code=3 ++ __pids_var_run /usr/bin/mongod /var/run/mongodb/mongod.pid#locationofpidfile ++ local base=mongod ++ local pid_file=/var/run/mongodb/mongod.pid#locationofpidfile ++ pid= ++ '[' -f /var/run/mongodb/mongod.pid#locationofpidfile ']' ++ return 3 ++ RC=3 ++ '[' -n '' ']' ++ '[' -n /var/run/mongodb/mongod.pid#locationofpidfile ']' ++ return 3 + local pid= + kill -TERM + usleep 100000 + local -i x=0 + '[' 0 -le 300 ']' + checkpid + local i + return 1 + kill -KILL + usleep 100000 + checkpid + local i + return 1 + local RC=1 + '[' 1 -eq 0 ']' + rm -f /var/run/mongodb/mongod.pid#locationofpidfile + success '/usr/bin/mongod shutdown' + '[' color '!=' verbose -a -z '' ']' + echo_success + '[' color = color ']' + echo -en '\033[60G' + echo -n '[' [+ '[' color = color ']' + echo -en '\033[0;32m' + echo -n ' OK ' OK + '[' color = color ']' + echo -en '\033[0;39m' + echo -n ']' ]+ echo -ne '\r' + return 0 + return 0 + RC=0 + return 0 + RETVAL=0 + echo + '[' 0 -eq 0 ']' + rm -f /var/lock/subsys/mongod + exit 0 [root@do1h2 ~]# ls -al /var/run/mongodb/ total 12 drwxr-xr-x. 2 mongod mongod 4096 2015-12-11 11:17 . drwxr-xr-x. 20 root root 4096 2015-12-11 11:04 .. -rw-r--r--. 1 mongod mongod 6 2015-12-11 11:17 mongod.pid [root@do1h2 ~]# cat /var/run/mongodb/mongod.pid 29282 [root@do1h2 ~]# ps -ef | grep mongo mongod 29282 1 0 11:17 ? 00:00:00 /usr/bin/mongod -f /etc/mongod.conf root 29323 28745 0 11:18 pts/0 00:00:00 grep mongo [root@do1h2 ~]# bash -x /etc/init.d/mongod start + . /etc/rc.d/init.d/functions ++ TEXTDOMAIN=initscripts ++ umask 022 ++ PATH=/sbin:/usr/sbin:/bin:/usr/bin ++ export PATH ++ '[' -z '' ']' ++ COLUMNS=80 ++ '[' -z '' ']' +++ /sbin/consoletype ++ CONSOLETYPE=pty ++ '[' -f /etc/sysconfig/i18n -a -z '' -a -z '' ']' ++ . /etc/profile.d/lang.sh ++ unset LANGSH_SOURCED ++ '[' -z '' ']' ++ '[' -f /etc/sysconfig/init ']' ++ . /etc/sysconfig/init +++ BOOTUP=color +++ RES_COL=60 +++ MOVE_TO_COL='echo -en \033[60G' +++ SETCOLOR_SUCCESS='echo -en \033[0;32m' +++ SETCOLOR_FAILURE='echo -en \033[0;31m' +++ SETCOLOR_WARNING='echo -en \033[0;33m' +++ SETCOLOR_NORMAL='echo -en \033[0;39m' +++ PROMPT=yes +++ AUTOSWAP=no +++ ACTIVE_CONSOLES='/dev/tty[1-6]' +++ SINGLE=/sbin/sushell ++ '[' pty = serial ']' ++ __sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d' + CONFIGFILE=/etc/mongod.conf + OPTIONS=' -f /etc/mongod.conf' + SYSCONFIG=/etc/sysconfig/mongod ++ awk '-F[:=]' -v IGNORECASE=1 '/^[[:blank:]]*(processManagement\.)?pidfilepath[[:blank:]]*[:=][[:blank:]]*/{print $2}' /etc/mongod.conf ++ tr -d '[:blank:]"'\''' + PIDFILEPATH=/var/run/mongodb/mongod.pid#locationofpidfile + mongod=/usr/bin/mongod + MONGO_USER=mongod + MONGO_GROUP=mongod + '[' -f /etc/sysconfig/mongod ']' + . /etc/sysconfig/mongod ++ dirname /var/run/mongodb/mongod.pid#locationofpidfile + PIDDIR=/var/run/mongodb + NUMACTL_ARGS=--interleave=all + which numactl + NUMACTL= + RETVAL=0 + case "$1" in + start + '[' '!' -d /var/run/mongodb ']' + ulimit -f unlimited + ulimit -t unlimited + ulimit -v unlimited + ulimit -n 64000 + ulimit -m unlimited + ulimit -u 64000 + echo -n 'Starting mongod: ' Starting mongod: + daemon --user mongod --check /usr/bin/mongod ' /usr/bin/mongod -f /etc/mongod.conf' + local gotbase= force= nicelevel corelimit + local pid base= user= nice= bg= pid_file= + local cgroup= + nicelevel=0 + '[' --user '!=' -user ']' + case $1 in + user=mongod + shift 2 + '[' --check '!=' -check ']' + case $1 in + base=/usr/bin/mongod + gotbase=yes + shift 2 + '[' ' /usr/bin/mongod -f /etc/mongod.conf' '!=' ' /usr/bin/mongod -f /etc/mongod.conf' ']' + '[' -z yes ']' + __pids_var_run /usr/bin/mongod '' + local base=mongod + local pid_file=/var/run/mongod.pid + pid= + '[' -f /var/run/mongod.pid ']' + return 3 + '[' -n '' -a -z '' ']' + corelimit='ulimit -S -c 0' + '[' -n '' ']' + '[' -n '' ']' + '[' color = verbose -a -z '' ']' + '[' -z mongod ']' + runuser -s /bin/bash mongod -c 'ulimit -S -c 0 >/dev/null 2>&1 ; /usr/bin/mongod -f /etc/mongod.conf' about to fork child process, waiting until server is ready for connections. forked process: 29336 ERROR: child process failed, exited with error number 100 + '[' 100 -eq 0 ']' + failure '/usr/bin/mongod startup' + local rc=1 + '[' color '!=' verbose -a -z '' ']' + echo_failure + '[' color = color ']' + echo -en '\033[60G' + echo -n '[' [+ '[' color = color ']' + echo -en '\033[0;31m' + echo -n FAILED FAILED+ '[' color = color ']' + echo -en '\033[0;39m' + echo -n ']' ]+ echo -ne '\r' + return 1 + '[' -x /bin/plymouth ']' + /bin/plymouth --details + return 1 + RETVAL=1 + echo + '[' 1 -eq 0 ']' + exit 1