From 0b843113b63f19aa5ebf96689f7092a24a00248b Mon Sep 17 00:00:00 2001 From: Wendell Jones Date: Mon, 7 Jul 2025 09:36:14 -0400 Subject: [PATCH] Add bash script to start containers on boot as python script is not executing --- personal/system/start_clients.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 personal/system/start_clients.sh diff --git a/personal/system/start_clients.sh b/personal/system/start_clients.sh new file mode 100644 index 0000000..e8a50b8 --- /dev/null +++ b/personal/system/start_clients.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +echo "Client Type: $1" +echo "Client IDs: $2" +client_string=$2 +client_list=() + +IFS=', ' read -a array <<< "${client_string}"; echo "${array[@]}" + +for index in "${!array[@]}" +do + echo "Starting container: ${array[index]}" + lxc-start ${array[index]} +done \ No newline at end of file