I have created a superuser tom in mongodb v2.6.11 with username & password and now i want to add this at ubunt
Alternatively possible to use supervisor:
apt install supervisor
Setting for process mongodb:
create file myupstartservice.conf at location /etc/supervisor/conf.d and put below code
[program:mongo]
command=/usr/bin/mongod --auth --config /etc/mongod.conf
autostart=true
autorestart=true
user=root
priority=100
then checkservice
service supervisor restart
some reference