KubeOS:support generate coredump
For Go language applications, generating coredump requires declaring the environment variable GOTRACEBACK=crash, so the service of os agent adds Environment=GOTRACEBACK=crash to support generating coredump Signed-off-by: liyuanr <liyuanrong1@huawei.com>
This commit is contained in:
parent
acf8a7c071
commit
e89a0af450
30
0002-KubeOS-support-generate-coredump.patch
Normal file
30
0002-KubeOS-support-generate-coredump.patch
Normal file
@ -0,0 +1,30 @@
|
||||
From 20d0487753b045a0a0af19dffd0d5deec25fd672 Mon Sep 17 00:00:00 2001
|
||||
From: liyuanr <liyuanrong1@huawei.com>
|
||||
Date: Wed, 14 Jun 2023 16:00:03 +0800
|
||||
Subject: [PATCH] KubeOS:support generate coredump
|
||||
|
||||
For Go language applications, generating coredump
|
||||
requires declaring the environment variable GOTRACEBACK=crash,
|
||||
so the service of os agent adds Environment=GOTRACEBACK=crash
|
||||
to support generating coredump
|
||||
|
||||
Signed-off-by: liyuanr <liyuanrong1@huawei.com>
|
||||
---
|
||||
files/os-agent.service | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/files/os-agent.service b/files/os-agent.service
|
||||
index cf71d08..f778804 100644
|
||||
--- a/files/os-agent.service
|
||||
+++ b/files/os-agent.service
|
||||
@@ -12,6 +12,7 @@
|
||||
Description=Agent For KubeOS
|
||||
|
||||
[Service]
|
||||
+Environment=GOTRACEBACK=crash
|
||||
ExecStart=/usr/bin/os-agent
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
--
|
||||
2.33.0.windows.2
|
||||
|
||||
@ -2,11 +2,12 @@
|
||||
|
||||
Name: KubeOS
|
||||
Version: 1.0.3
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: O&M platform used to update the whole OS as an entirety
|
||||
License: Mulan PSL v2
|
||||
Source0: https://gitee.com/openeuler/KubeOS/repository/archive/v%{version}.tar.gz
|
||||
Patch1: 0001-KubeOS-add-oci-image-digests-check-when-upgrade-and-.patch
|
||||
Patch2: 0002-KubeOS-support-generate-coredump.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: make
|
||||
BuildRequires: golang >= 1.13
|
||||
@ -107,6 +108,12 @@ install -p -m 0600 ./files/os-release %{buildroot}/opt/kubeOS/files
|
||||
rm -rfv %{buildroot}
|
||||
|
||||
%changelog
|
||||
* Wed June 14 2023 liyuanrong<liyuanrong1@huawei.com> - 1.0.3-3
|
||||
- Type:requirement
|
||||
- CVE:NA
|
||||
- SUG:restart
|
||||
- DESC:support generate coredump
|
||||
|
||||
* Tue May 30 2023 liyuanrong<liyuanrong1@huawei.com> - 1.0.3-2
|
||||
- Type:requirement
|
||||
- CVE:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user