diff --git a/0004-atune-add-service-restart-mode.patch b/0004-atune-add-service-restart-mode.patch new file mode 100644 index 0000000..33a8025 --- /dev/null +++ b/0004-atune-add-service-restart-mode.patch @@ -0,0 +1,26 @@ +From 6aae35d592388924f5ab92db90912a1b7962d665 Mon Sep 17 00:00:00 2001 +From: gaoruoshu +Date: Wed, 16 Aug 2023 10:26:19 +0800 +Subject: [PATCH] [atune]add service restart mode + +--- + misc/atuned.service | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/misc/atuned.service b/misc/atuned.service +index bc5de9b..58fb022 100644 +--- a/misc/atuned.service ++++ b/misc/atuned.service +@@ -7,6 +7,9 @@ Requires=polkit.service + Type=notify + ExecStart=/usr/bin/atuned + SuccessExitStatus=100 ++Restart=on-failure ++RestartSec=3s ++TimeoutSec=1m + + [Install] + WantedBy=multi-user.target +-- +2.27.0 + diff --git a/atune.spec b/atune.spec index bc3caf3..be3d051 100755 --- a/atune.spec +++ b/atune.spec @@ -3,7 +3,7 @@ Summary: AI auto tuning system Name: atune Version: 1.0.0 -Release: 9 +Release: 11 License: Mulan PSL v2 URL: https://gitee.com/openeuler/A-Tune Source: https://gitee.com/openeuler/A-Tune/repository/archive/v%{version}.tar.gz @@ -16,6 +16,7 @@ Patch9004: A-Tune-Add-sw64-architecture.patch Patch9005: 0001-bugfix-transfer-can-only-save-file-to-specified-dir.patch Patch9006: 0002-bugfix-training-model-can-only-save-file-to-specifie.patch Patch9007: 0003-bugfix-collection-res-can-only-save-file-to-specifie.patch +Patch9008: 0004-atune-add-service-restart-mode.patch BuildRequires: rpm-build golang-bin procps-ng BuildRequires: sqlite >= 3.24.0 openssl @@ -168,6 +169,9 @@ cp -af %{_prefix}/lib/golang/src/cmd/vendor/golang.org/x/sys vendor/golang.org/x %exclude /etc/atuned/rest_certs %changelog +* Fri Aug 25 2023 sunchendong - 1.0.0-11 +- atune add service restart mode + * Fri Aug 11 2023 panchenbo - 1.0.0-10 - update sw_64 support patch