Startup in Ubuntu even work?

In the folder /etc/init.d/ put the script for mongodb:

sudo /usr/bin/mongod --config /etc/mongod.conf --dbpath /var/lib/mongodb &

When you boot the system it fails to start the Mongo daemon is not enabled. What could it be? The rights to the script changed.
July 8th 19 at 16:33
4 answers
July 8th 19 at 16:35
put the script in the init.d - this is not enough. use rc-update.
July 8th 19 at 16:37
July 8th 19 at 16:39
Did as written here: (answer after the marked solution)
Have sysv-rc-conf is a great graphical interface. I ran, space put level, then sudo reboot and everything started up ))
July 8th 19 at 16:41
and the services just can't turn it? I got through the service fine, everything launches
Could you explain how to do it? - Kameron_Hilpert34 commented on July 8th 19 at 16:44

Find more questions by tags Ubuntu