From d611561552e4099fdbcc790cb0172cffdd58adb2 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Sat, 8 Aug 2020 08:28:44 +0300 Subject: [PATCH] more parallel actions --- SOURCES/main/lib/instance.lib | 3 +++ SOURCES/main/lib/workshop.lib | 3 +++ SPECS/kf2-srv.spec | 8 ++++---- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/SOURCES/main/lib/instance.lib b/SOURCES/main/lib/instance.lib index f44e3ca..92467c3 100644 --- a/SOURCES/main/lib/instance.lib +++ b/SOURCES/main/lib/instance.lib @@ -253,8 +253,11 @@ function instance_list () # $*: [InstanceName[s]] fi for Instance in $InstanceList do + ( instance_status "$Instance" + ) & done + wait } | sort -t : -k 4 } | column -t -s : } diff --git a/SOURCES/main/lib/workshop.lib b/SOURCES/main/lib/workshop.lib index fec052d..6c6c2d4 100644 --- a/SOURCES/main/lib/workshop.lib +++ b/SOURCES/main/lib/workshop.lib @@ -59,6 +59,7 @@ function workshop_list () { for WorkshopID in $(workshop_list_ids) do + ( local Cache="$CacheDir/$WorkshopID" local Downl="$DownloadDir/content/$AppClientNum/$WorkshopID" local Url="https://steamcommunity.com/sharedfiles/filedetails/?id=$WorkshopID" @@ -69,7 +70,9 @@ function workshop_list () local WsSize="-"; WsName="-" fi echo "$WorkshopID $WsName $WsSize $Url" + ) & done + wait } | sort -k 2 } | column -t } diff --git a/SPECS/kf2-srv.spec b/SPECS/kf2-srv.spec index fe47d2d..00b9b5b 100644 --- a/SPECS/kf2-srv.spec +++ b/SPECS/kf2-srv.spec @@ -1,7 +1,7 @@ %global steamuser steam Name: kf2-srv -Version: 0.14.0 +Version: 0.14.1 Release: 1%{dist} Summary: Killing Floor 2 server Group: Amusements/Games @@ -12,9 +12,6 @@ Source0: %{name}-%{version}.tar.gz BuildRequires: systemd-rpm-macros -#BuildRequires(check): xmllint -#BuildRequires(check): systemd >= 219 - Requires: systemd >= 219 Requires: steamcmd >= 2018.01.05-5 Requires: libxml2 @@ -99,6 +96,9 @@ if [[ $1 == 1 ]]; then # Install fi %changelog +* Sat Aug 8 2020 GenZmeY - 0.14.1-1 +- parallel actions for instance list. + * Sat Aug 8 2020 GenZmeY - 0.14.0-1 - new usage (groups/commands); - new code structure;