mirror of
https://github.com/ansible/awx.git
synced 2026-05-22 00:07:40 -02:30
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:
@@ -140,7 +140,7 @@ def mongodb_control(cmd):
|
|||||||
|
|
||||||
if cmd == 'stop':
|
if cmd == 'stop':
|
||||||
time.sleep(30)
|
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()
|
out, err = p.communicate()
|
||||||
logger.info("Shutdown command output: %s;%s" % (out, err))
|
logger.info("Shutdown command output: %s;%s" % (out, err))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user