1

This is crazy - I've gone around-and-around on this. From the command line, I can call the following successfully:

sudo service mongod --dbpath "/var/lib/mongodb" --auth

I have tried at least a dozen variations of trying to get mongo to auto-start on boot with no success. I tried a script with the above line and put in init.d...I tried systemctl - but that is not recognized as a command. etc... I have configured /etc/mongod.conf - but that does not appear to be used, as a simple mongod call says it can't find the database in /data/db/ ... I used a simple apt-get to install this, but can only run it from the command line, any help would be appreciated.

Markus W Mahlberg
  • 19,711
  • 6
  • 65
  • 89
Jolly
  • 349
  • 1
  • 2
  • 9

0 Answers0