Ubuntu starts mongo automatically

This commit is contained in:
Elliott Seyler 2015-01-11 22:32:51 -08:00
parent 9153e1463d
commit 84c2d3b9a7

View file

@ -174,8 +174,8 @@ class LinuxSetup(SetupFactory):
else:
print("NodeJS and MongoDB installed successfully. "
"Staring MongoDB.")
try:
subprocess.check_call(["service", "mongod", "start"])
except subprocess.CalledProcessError as err:
print("Mongo failed to start. Aborting.")
exit(1)
#try:
#subprocess.check_call(["service", "mongod", "start"])
#except subprocess.CalledProcessError as err:
#print("Mongo failed to start. Aborting.")
#exit(1)