Skip to content

Commit

Permalink
Allow job cloning in non-systemd environments
Browse files Browse the repository at this point in the history
Run openqa-worker on background to allow script to continue with
openqa-clone-job invocation, then wait for the worker process.
  • Loading branch information
baierjan committed Aug 1, 2024
1 parent 4389076 commit c87c79f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/openqa-bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -182,3 +182,5 @@ start-worker
if [[ $# -ne 0 ]]; then
openqa-clone-job "$@"
fi

[[ -n $running_systemd ]] || wait

0 comments on commit c87c79f

Please sign in to comment.