wait4amd2die
============
This script is used internally by `ctl-amd' when used to restart
Amd. It waits for Amd to terminate. If it detected that Amd
terminated cleanly, this script will return an exist status of zero.
Otherwise, it will return a non-zero exit status.
The script tests for Amd's existence once every 5 seconds, six
times, for a total of 30 seconds. It will return a zero exist status as
soon as it detects that Amd dies.