From 5a77d1f0d47244262066b7666653311f4391089b Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Mon, 6 Jul 2015 11:49:24 -0400 Subject: [PATCH] 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 --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index d30183c9c6..800225e02f 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -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))