github.com/click2cloud/libcompose@v0.4.1-0.20170816121048-7c20f79ac6b9/hack/.integration-daemon-stop (about) 1 #!/bin/bash 2 3 trap - EXIT # reset EXIT trap applied in .integration-daemon-start 4 5 for pidFile in $(find "$DEST" -name docker.pid); do 6 pid=$(set -x; cat "$pidFile") 7 ( set -x; kill "$pid" ) 8 if ! wait "$pid"; then 9 echo >&2 "warning: PID $pid from $pidFile had a nonzero exit code" 10 fi 11 done