From f3545cbc69814e5ab23a567a07b985eff138d3aa Mon Sep 17 00:00:00 2001 From: ylzhangah <1194926515@qq.com> Date: Mon, 5 Sep 2022 17:25:01 +0800 Subject: [PATCH] Fix the issues for oech.service status failed after stoped oech.service (cherry picked from commit 05d1aae43a6dfc7b76edc418b3770fb7d95d6de5) --- ...1.1.2-fix-oech.service_status_failed.patch | 20 +++++++++++++++++++ oec-hardware.spec | 7 ++++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 oec-hardware-1.1.2-fix-oech.service_status_failed.patch diff --git a/oec-hardware-1.1.2-fix-oech.service_status_failed.patch b/oec-hardware-1.1.2-fix-oech.service_status_failed.patch new file mode 100644 index 0000000..ec39531 --- /dev/null +++ b/oec-hardware-1.1.2-fix-oech.service_status_failed.patch @@ -0,0 +1,20 @@ +diff -Naur rpm/scripts/oech_logrotate.sh oech/scripts/oech_logrotate.sh +--- rpm/scripts/oech_logrotate.sh 2022-08-29 19:51:34.000000000 +0800 ++++ oech/scripts/oech_logrotate.sh 2022-09-05 17:15:26.557831648 +0800 +@@ -42,7 +42,8 @@ + } + + function stop_logrotate() { +- ps -ef | grep oech_logrotate.sh | grep -v grep | awk '{print $2}' | xargs kill -9 >/dev/null 2>&1 ++ ps -ef | grep oech_logrotate.sh | grep -v grep | awk '{print $2}' | xargs killall >/dev/null 2>&1 ++ return 0 + } + + function main() { +@@ -57,4 +58,4 @@ + fi + } + +-main "$@" +\ No newline at end of file ++main "$@" diff --git a/oec-hardware.spec b/oec-hardware.spec index 6d21e68..6d6b8fe 100644 --- a/oec-hardware.spec +++ b/oec-hardware.spec @@ -4,13 +4,14 @@ Name: oec-hardware Summary: openEuler Hardware Compatibility Test Suite Version: 1.1.2 -Release: 0 +Release: 1 Group: Development/Tools License: Mulan PSL v2 URL: https://gitee.com/openeuler/oec-hardware Source0: https://gitee.com/openeuler/oec-hardware/repository/archive/v%{version}.tar.gz # patch fix issue +Patch0001: oec-hardware-1.1.2-fix-oech.service_status_failed.patch Buildroot: %{_tmppath}/%{name}-%{version}-root BuildRequires: gcc @@ -33,6 +34,7 @@ openEuler Hardware Compatibility Test Server %prep %setup -q -c +%patch1 -p1 %build @@ -75,6 +77,9 @@ DESTDIR=$RPM_BUILD_ROOT make install rm -rf /var/lock/oech.lock %changelog +* Sat Sep 03 2022 ylzhangah - 1.1.2-1 +- Fix the status failed in checking oech.service status after stoped oech.service + * Tue Aug 30 2022 ylzhangah - 1.1.2-0 - Upgrade command module - Add VGPU testsuite -- Gitee