代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/A-Tune 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From e45f1c5d09938dc2911c0b5d57ef8feb1b951c97 Mon Sep 17 00:00:00 2001
From: Zhipeng Xie <xiezhipeng1@huawei.com>
Date: Sun, 20 Sep 2020 23:59:54 -0400
Subject: [PATCH] Add SuccessExitStatus=100 to atuned.service
call os.Exit(100) when get killed signal
Fix https://gitee.com/openeuler/A-Tune/issues/I1VCQY?from=project-issue
Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
---
common/service/pyservice/pyservice.go | 4 ++--
misc/atuned.service | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/common/service/pyservice/pyservice.go b/common/service/pyservice/pyservice.go
index 99b2239..b3df55c 100644
--- a/common/service/pyservice/pyservice.go
+++ b/common/service/pyservice/pyservice.go
@@ -14,10 +14,10 @@
package pyservice
import (
+ "bufio"
"gitee.com/openeuler/A-Tune/common/config"
"gitee.com/openeuler/A-Tune/common/log"
"gitee.com/openeuler/A-Tune/common/registry"
- "bufio"
"io"
"os"
"os/exec"
@@ -94,5 +94,5 @@ func listenToSystemSignals(cmd *exec.Cmd) {
signal.Notify(signalChan, os.Interrupt, syscall.SIGTERM)
<-signalChan
_ = syscall.Kill(-cmd.Process.Pid, syscall.SIGKILL)
- os.Exit(-1)
+ os.Exit(100)
}
diff --git a/misc/atuned.service b/misc/atuned.service
index e2a8851..3b31b6e 100644
--- a/misc/atuned.service
+++ b/misc/atuned.service
@@ -6,6 +6,7 @@ Requires=polkit.service
[Service]
Type=notify
ExecStart=/usr/bin/atuned
+SuccessExitStatus=100
[Install]
WantedBy=multi-user.target
--
1.8.3.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。