Is there any way to enable mongodb services, if the db services is running in the fork mode. There may be chance if the server reboot. so need to start manually in the fork mode

Is there any way to enable mongodb services, if the db services is running in the fork mode. There may be chance if the server reboot. so need to start manually in the fork mode

Hi @Samrat_Mehta

What OS are you using and what installation method did you use?

In general the answer is yes, the specifics are dependent on the answers to the above questions.

1 Like

NAME=“CentOS Linux”
VERSION=“7 (Core)”
ID=“centos”
ID_LIKE=“rhel fedora”
VERSION_ID=“7”
PRETTY_NAME=“CentOS Linux 7 (Core)”
ANSI_COLOR=“0;31”
CPE_NAME=“cpe:/o:centos:centos:7”
HOME_URL=“https://www.centos.org/
BUG_REPORT_URL=“https://bugs.centos.org/

MONGO DB VERSION
[root@localhost ~]# mongod --version
db version v5.0.20
Build Info: {
“version”: “5.0.20”,
“gitVersion”: “2cd626d8148120319d7dca5824e760fe220cb0de”,
“openSSLVersion”: “OpenSSL 1.0.1e-fips 11 Feb 2013”,
“modules”: ,
“allocator”: “tcmalloc”,
“environment”: {

it was there since long back before I joined the organsation
and normal method was used to install the mongodb and systemctl start mongod was not working . so they started using fork mode

There was an issue with one release that affected the systemd unit. That was resolved in 5.0.16 so it should work fine now.

Perhaps run rpmverify mongodb-org-server to check the packaged version of the systemd units.

2 Likes