github.com/raychaser/docker@v1.5.0/project/make/.integration-daemon-stop (about)

     1  #!/bin/bash
     2  
     3  for pidFile in $(find "$DEST" -name docker.pid); do
     4  	pid=$(set -x; cat "$pidFile")
     5  	( set -x; kill $pid )
     6  	if ! wait $pid; then
     7  		echo >&2 "warning: PID $pid from $pidFile had a nonzero exit code"
     8  	fi
     9  done