Robert
Robert

Reputation: 10953

Some problems running Mongodb like service

I'm trying to run Mongodb like service following this scripts configuration. Then when i try to execute any of this commands:

service mongodb [start|stop|restart]
service mongoconf [start|stop|restart]
service mongos [start|stop|restart]

I got this problem.

vagrant@sandbox-dev:~$ service mongodb start
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.5" (uid=1000 pid=1296 comm="start mongodb ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")

I'm using ubuntu 12.04 on my Vagrant VM.

Thanks for any help..!!

Upvotes: 2

Views: 773

Answers (1)

Just add sudo

sudo service mongodb [start|stop|restart]
sudo service mongoconf [start|stop|restart]
sudo service mongos [start|stop|restart]

Upvotes: 3

Related Questions