Only kill the dev server when it is started by image_to_live process.

Review URL: http://codereview.chromium.org/1986012
This commit is contained in:
Kelly Lucas 2010-05-17 13:57:30 -07:00
parent f87a3678dd
commit 3c784f78fe

View File

@ -25,14 +25,16 @@ DEFINE_integer devserver_port 8080 \
DEFINE_string update_url "" "Full url of an update image"
function kill_all_devservers {
echo "Killing dev server."
# Using ! here to avoid exiting with set -e is insufficient, so use
# || true instead.
sudo pkill -f devserver\.py || true
}
function cleanup {
echo "Killing dev server."
if [ -z "${FLAGS_update_url}" ]; then
kill_all_devservers
fi
cleanup_remote_access
rm -rf "${TMP}"
}