We have install mongodb in Ubuntu 18.04 LTS. The system was working fine. mongodb service was auto started during reboot.
sudo mongod --repair , After this the mongod service is not autostarting and
sudo systemctl enable mongod
sudo systemctl start mongodis not working
But When I execute
sudo mongod --config /etc/mongodb.conf, Mongo db works well.
We want to autostart mongodb using systemctl. Kindly guide me to fix the auto start issue.