mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Wait when stopping supervisor
Fixes a problem where we issue a start before supervisor has cleaned up child pids (Ubuntu only). Trello: https://trello.com/c/5rOxYcY5
This commit is contained in:
parent
83c64dbd38
commit
c7079cf338
@ -25,11 +25,16 @@ fi
|
||||
|
||||
service_action() {
|
||||
for svc in ${SERVICES[@]}; do
|
||||
service ${svc} $1
|
||||
this_return=$?
|
||||
if [ $this_return -gt $worst_return ]; then
|
||||
worst_return=$this_return
|
||||
fi
|
||||
service ${svc} $1
|
||||
this_return=$?
|
||||
if [ $this_return -gt $worst_return ]; then
|
||||
worst_return=$this_return
|
||||
fi
|
||||
# Allow supervisor time to cleanup child pids (ubuntu only)
|
||||
if [[ ${svc} == supervisor* && ${1} == stop && -e /etc/debian_version ]]; then
|
||||
echo "Waiting to allow supervisor time to cleanup ..."
|
||||
sleep 5
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user