mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
6f75dd85c5
Signed-off-by: Jessica Frazelle <princess@docker.com>
21 lines
486 B
Bash
21 lines
486 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
|
|
|
|
if [ -z "$DOCKER_TEST_HOST" ]; then
|
|
# Stop apparmor if it is enabled
|
|
if [ "$(cat /sys/module/apparmor/parameters/enabled)" == "Y" ]; then
|
|
(
|
|
set -x
|
|
/etc/init.d/apparmor stop
|
|
)
|
|
fi
|
|
fi
|