mirror of
https://github.com/ansible/awx.git
synced 2026-08-01 18:39:54 -02: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:
@@ -30,6 +30,11 @@ service_action() {
|
|||||||
if [ $this_return -gt $worst_return ]; then
|
if [ $this_return -gt $worst_return ]; then
|
||||||
worst_return=$this_return
|
worst_return=$this_return
|
||||||
fi
|
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
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user