From 75aa696f39dedd1dcaab1e899938c89612bbdc2c Mon Sep 17 00:00:00 2001 From: lingsheng Date: Mon, 12 Jul 2021 16:36:30 +0800 Subject: [PATCH] Fix stop service failure --- hadoop-3.1.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hadoop-3.1.spec b/hadoop-3.1.spec index b2a34e2..3a74d92 100644 --- a/hadoop-3.1.spec +++ b/hadoop-3.1.spec @@ -12,7 +12,7 @@ %define _binaries_in_noarch_packages_terminate_build 0 Name: hadoop-3.1 Version: 3.1.4 -Release: 9 +Release: 10 Summary: A software platform for processing vast amounts of data # The BSD license file is missing # https://issues.apache.org/jira/browse/HADOOP-9849 @@ -871,7 +871,7 @@ do echo "Failed to determine type of service for %service" exit 1 fi - sed -e "s|DAEMON|$daemon|g" $src > %{buildroot}%{_unitdir}/%{real_name}-$s.service + sed -e "s|DAEMON|$daemon|g" -e "/LimitNPROC/a\SuccessExitStatus=SIGKILL" $src > %{buildroot}%{_unitdir}/%{real_name}-$s.service done cp -f %{SOURCE7} %{buildroot}%{_sysconfdir}/sysconfig/tomcat@httpfs @@ -1111,6 +1111,9 @@ fi %config(noreplace) %{_sysconfdir}/%{real_name}/container-executor.cfg %changelog +* Mon Jul 12 2021 lingsheng - 3.1.4-10 +- Fix stop service failure + * Mon Jul 12 2021 wangyue - 3.1.4-9 - Add gcc-c++ to build dependency -- Gitee