Fix up mongo service handline and task logging

* Use -f instead of -c for mongod when refernecing config file
  for shutdown behavior in the stop task
* Fix up task logging to use new supervisor configuration syntax
This commit is contained in:
Matthew Jones
2015-07-06 11:49:24 -04:00
parent ef95cf091e
commit 5a77d1f0d4

View File

@@ -140,7 +140,7 @@ def mongodb_control(cmd):
if cmd == 'stop':
time.sleep(30)
p = subprocess.Popen('sudo mongod --shutdown -c /etc/mongod.conf')
p = subprocess.Popen('sudo mongod --shutdown -f /etc/mongod.conf')
out, err = p.communicate()
logger.info("Shutdown command output: %s;%s" % (out, err))