I have created a superuser tom in mongodb v2.6.11 with username & password and now i want to add this at ubunt
1 : Got to -> $cd /etc/init/
2 :Through vi Or nano editor Create file myservice.conf
with below code
description "service to start mongodb at startup"
author "plutopunch :)"
start on started mountall
stop on shutdown
respawn
respawn limit 99 5
script
export HOME="/home/admin"
exec sudo mongod --port 27017 --auth --dbpath /var/lib/mongodb
end script
post-start script
end script
3 : restart pc
http://upstart.ubuntu.com/cookbook/