I've got two services one is elasticsearch, the other is mongodb, recently I found the mongodb service have some issues while i start or stop it.
The case is while I start mongo with the following command when the mongodb service is actually stopped.
brew services start mongodb
,
it shows me following errorCode but it was started
----------Error Code-------------
/Users/attis/Library/LaunchAgents/homebrew.mxcl.mongodb.plist: service already loaded
Error: Failure while executing; /bin/launchctl bootstrap gui/501 /Users/attis/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
exited with 133.
while I stop mongo with the following command when the mongodb service is actually started. it shows me the following errorCode but it was stopped after it.
---------Error Code---------------
Error: Service mongodb
is not started.
I'm not familliar with the launchctl mechanism. Could any one suggest to help me fix the annoying issue. especially while i start all services it will block all the following services that start after mongodb from getting started.