Browse Source

Fixed an age-old problem with restarting mongo

Mike Smith 10 years ago
parent
commit
5965afe675
1 changed files with 2 additions and 2 deletions
  1. 2 2
      toolset/benchmark/benchmarker.py

+ 2 - 2
toolset/benchmark/benchmarker.py

@@ -532,9 +532,9 @@ class Benchmarker:
           p = subprocess.Popen(self.database_ssh_string, stdin=subprocess.PIPE, stdout=out, stderr=err, shell=True)
           p = subprocess.Popen(self.database_ssh_string, stdin=subprocess.PIPE, stdout=out, stderr=err, shell=True)
           p.communicate("""
           p.communicate("""
             sudo restart mysql
             sudo restart mysql
-            sudo restart mongodb
+            sudo restart mongod
             sudo service redis-server restart
             sudo service redis-server restart
-            sudo /etc/init.d/postgresql restart
+            sudo service postgresql restart
           """)
           """)
           time.sleep(10)
           time.sleep(10)