mirror of
https://github.com/ansible/awx.git
synced 2026-05-06 00:47:37 -02:30
Update start/stop service script ordering
Mongo needs to be last when starting and first when stopping if enabled
This commit is contained in:
@@ -16,8 +16,10 @@ service_action() {
|
|||||||
# Should MongoDB be managed by this script?
|
# Should MongoDB be managed by this script?
|
||||||
# We only manage MongoDB if the license uses it.
|
# We only manage MongoDB if the license uses it.
|
||||||
tower-manage uses_mongo > /dev/null 2> /dev/null
|
tower-manage uses_mongo > /dev/null 2> /dev/null
|
||||||
if [ $? == 0 ]; then
|
if [ $? == 0 && ${1} == start ]; then
|
||||||
SERVICES="$SERVICES mongod"
|
SERVICES="$SERVICES mongod"
|
||||||
|
elif [ $? == 0 && ${1} == stop ]; then
|
||||||
|
SERVICES="mongod $SERVICES"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for svc in ${SERVICES}; do
|
for svc in ${SERVICES}; do
|
||||||
|
|||||||
Reference in New Issue
Block a user