This message was posted on behalf of Intel Corporation1 of 1 people found this helpful
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.
1 of 1 people found this helpful
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: