#!/bin/bash

# Usage check
if [ "$#" -ne 2 ]; then
    echo "Usage: $0 <start_id> <end_id>"
    exit 1
fi

START=$1
END=$2

for ((i=START; i<=END; i++)); do
    echo "Starting container $i..."
    pct start "$i" &
    sleep 2
done

echo "All start commands launched from $START to $END with 5-second spacing."