A
A
Alexey Yarkov2016-06-06 02:00:19
ubuntu
Alexey Yarkov, 2016-06-06 02:00:19

Does autoload work in Ubuntu at all?

I put the mongodb script in the /etc/init.d/ folder:

#!/bin/bash

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

When the system boots, it does not start, the mongi daemon is not enabled. What could be? Changed the rights to the script.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vreitech, 2016-06-06
@yarkov

putting the script in init.d is not enough. use rc-update.

A
Anton Ulanov, 2016-06-06
@antonsr98

Can't you just turn it on in services? I have everything running normally through the service

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question