[atune]add service restart mode

This commit is contained in:
sunchendong 2023-08-25 14:43:23 +08:00
parent 0769daba41
commit cbdde8817e
2 changed files with 32 additions and 1 deletions

View 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

View File

@ -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 <sunchendong@xfusion.com> - 1.0.0-13
- atune add service restart mode
* Thu Aug 10 2023 gaoruoshu <gaoruoshu@huawei.com> - 1.0.0-12
- bugfix set collection/transfer/train dir to specific dir