зеркало из https://github.com/microsoft/docker.git
12 строки
291 B
Bash
12 строки
291 B
Bash
#!/bin/bash
|
|
|
|
trap - EXIT # reset EXIT trap applied in .integration-daemon-start
|
|
|
|
for pidFile in $(find "$DEST" -name docker.pid); do
|
|
pid=$(set -x; cat "$pidFile")
|
|
( set -x; kill "$pid" )
|
|
if ! wait "$pid"; then
|
|
echo >&2 "warning: PID $pid from $pidFile had a nonzero exit code"
|
|
fi
|
|
done
|