From cca18a48d4c1f58dcdde856a590ddd45dbedc329 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 16 Jun 2019 07:06:15 +0200 Subject: lib/common-functions: trigger_mirror_refreshs(): wait for screen(s) to finish - else systemd seems to kill them --- lib/common-functions | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/common-functions b/lib/common-functions index 6159e50..59ab853 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -729,7 +729,10 @@ trigger_mirror_refreshs() { "${master_mirror_rsync_directory}/lastupdate" rm "${tmp_file}" for trigger_url in ${mirror_refresh_trigger_urls}; do - screen -S trigger-mirror-update -d -m curl -L "${trigger_url}" + screen -S trigger-mirror-update -d -m curl -L --connect-timeout 10 "${trigger_url}" + done + while screen -list trigger-mirror-update; do + sleep 1 done } -- cgit v1.2.3-70-g09d2