From cbdde8817ea055c415548512f918f60a775e5325 Mon Sep 17 00:00:00 2001 From: sunchendong Date: Fri, 25 Aug 2023 14:43:23 +0800 Subject: [PATCH] [atune]add service restart mode --- 0004-atune-add-service-restart-mode.patch | 26 +++++++++++++++++++++++ atune.spec | 7 +++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 0004-atune-add-service-restart-mode.patch 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 beca459..55d3d41 100755 --- a/atune.spec +++ b/atune.spec @@ -3,7 +3,7 @@ Summary: AI auto tuning system Name: atune Version: 1.0.0 -Release: 12 +Release: 13 License: MulanPSL-2.0 URL: https://gitee.com/openeuler/A-Tune Source: https://gitee.com/openeuler/A-Tune/repository/archive/v%{version}.tar.gz @@ -17,6 +17,7 @@ Patch9005: add-riscv64-support.patch Patch9006: 0001-bugfix-transfer-can-only-save-file-to-specified-dir.patch Patch9007: 0002-bugfix-training-model-can-only-save-file-to-specifie.patch Patch9008: 0003-bugfix-collection-res-can-only-save-file-to-specifie.patch +Patch9009: 0004-atune-add-service-restart-mode.patch BuildRequires: rpm-build golang-bin procps-ng @@ -88,6 +89,7 @@ atune engine tool for manage atuned AI tuning system. %patch9006 -p1 %patch9007 -p1 %patch9008 -p1 +%patch9009 -p1 %build %make_build @@ -177,6 +179,9 @@ atune engine tool for manage atuned AI tuning system. %exclude /etc/atuned/rest_certs %changelog +* Fri Aug 25 2023 sunchendong - 1.0.0-13 +- atune add service restart mode + * Thu Aug 10 2023 gaoruoshu - 1.0.0-12 - bugfix set collection/transfer/train dir to specific dir