Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
Linux epicuridev 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 16.04.1 LTS
16.04 xenial
*Location*: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
*User-Agent*: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
*Referrer*: https://docs.mongodb.com/manual/administration/install-on-linux/
*Screen Resolution*: 1920 x 1200
Linux epicuridev 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Ubuntu 16.04.1 LTS 16.04 xenial *Location*: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ *User-Agent*: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36 *Referrer*: https://docs.mongodb.com/manual/administration/install-on-linux/ *Screen Resolution*: 1920 x 1200
Description
The step here "(Ubuntu 16.04-only) Create systemd service file" is incorrect. Following these instructions alone doesn't ensure MongoDB starts up on reboot. A call to systemctl doesn't see this file.
I copied the contents of that file to "/etc/systemd/system/mongodb.service" instead and then ran:
sudo systemctl enable mongodb
And then on reboot mongodb starts up as expected.