[atune]add service restart mode
This commit is contained in:
parent
09ed666327
commit
69b2ae8306
26
0004-atune-add-service-restart-mode.patch
Normal file
26
0004-atune-add-service-restart-mode.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From 6aae35d592388924f5ab92db90912a1b7962d665 Mon Sep 17 00:00:00 2001
|
||||||
|
From: gaoruoshu <gaoruoshu@huawei.com>
|
||||||
|
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
|
||||||
|
|
||||||
@ -3,7 +3,7 @@
|
|||||||
Summary: AI auto tuning system
|
Summary: AI auto tuning system
|
||||||
Name: atune
|
Name: atune
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: 9
|
Release: 11
|
||||||
License: Mulan PSL v2
|
License: Mulan PSL v2
|
||||||
URL: https://gitee.com/openeuler/A-Tune
|
URL: https://gitee.com/openeuler/A-Tune
|
||||||
Source: https://gitee.com/openeuler/A-Tune/repository/archive/v%{version}.tar.gz
|
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
|
Patch9005: 0001-bugfix-transfer-can-only-save-file-to-specified-dir.patch
|
||||||
Patch9006: 0002-bugfix-training-model-can-only-save-file-to-specifie.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
|
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: rpm-build golang-bin procps-ng
|
||||||
BuildRequires: sqlite >= 3.24.0 openssl
|
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
|
%exclude /etc/atuned/rest_certs
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 25 2023 sunchendong <sunchendong@xfusion.com> - 1.0.0-11
|
||||||
|
- atune add service restart mode
|
||||||
|
|
||||||
* Fri Aug 11 2023 panchenbo <panchenbo@kylinsec.com.cn> - 1.0.0-10
|
* Fri Aug 11 2023 panchenbo <panchenbo@kylinsec.com.cn> - 1.0.0-10
|
||||||
- update sw_64 support patch
|
- update sw_64 support patch
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user