-
Michael Boniface authoredMichael Boniface authored
conts-stop.sh 296 B
#!/bin/bash
set -eu -o pipefail
cd `dirname $0`
source conts-env.sh
service_names=$(jq -r '.[].name' ${rspec_file})
for service_name in $service_names; do
if lxc-info -n ${service_name}; then
echo "Stopping container: ${service_name}"
lxc-stop -n ${service_name}
fi
done