Hi everyone, I've just installed MongoDB 32-bit on the Edison following this tutorial:
I lauched the "mongod" and it works, but now I'd like to launch mongod as a service by typing "systemctl start mongodb.service" or something like that. Unfortunately I'm still a linux newbie, I don't know how to do it :c
This is the mongod directory: /home/root/mongodb/mongodb-linux-i686-3.2.6/bin/
Please, help me!
In order to create services and manage them with systemctl as you mentioned, you need to use systemd. All the services available are located in /lib/systemd/.
In order to create a service for mongodb I suggest you to look into the following links:
I think these links will help you to create the service. Once the service is created you need to enable it in order to run everytime at boot.
Thanks for the links Charlie.
I also found this one:
It explains everything about systemd.service building.
Finally I created the file:
sudo nano /etc/systemd/system/mongod.service
Then for simplicity I wrote:
Description=Mongo is a scalable, document-oriented database.
It works!! c: