diff --git a/script/openqa-bootstrap b/script/openqa-bootstrap index 3b95c16acc1..755e4acb5aa 100755 --- a/script/openqa-bootstrap +++ b/script/openqa-bootstrap @@ -26,7 +26,7 @@ start-database() { start-worker() { if [[ -z $running_systemd ]]; then /usr/bin/install -d -m 0755 -o _openqa-worker /var/lib/openqa/pool/1 - su _openqa-worker -c '/usr/share/openqa/script/worker --instance 1' + su _openqa-worker -c '/usr/share/openqa/script/worker --instance 1' & else systemctl enable --now openqa-worker@1 fi @@ -182,3 +182,5 @@ start-worker if [[ $# -ne 0 ]]; then openqa-clone-job "$@" fi + +[[ -n $running_systemd ]] || wait