mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 18:20:00 -03: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':
|
||||
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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user