for uc in ${Usercount} do echo "Restarting Database before each run" systemctl restart mariadb.service Need to wait for the dbase to restart itself before continuing.
for uc in ${Usercount}
do
echo "Restarting Database before each run"
systemctl restart mariadb.service
Need to wait for the dbase to restart itself before continuing.