fix failed to parse pid from pid-file

This commit is contained in:
wu-leilei 2021-11-27 11:29:49 +08:00
parent 4ee56cfff0
commit 1e4b078efa
2 changed files with 30 additions and 2 deletions

View File

@ -0,0 +1,24 @@
From 60366e7a877919b7767736cbbb7850588f461490 Mon Sep 17 00:00:00 2001
From: caodongxia <315816521@qq.com>
Date: Wed, 25 Aug 2021 16:12:22 +0800
Subject: [PATCH] fix failed to parse pid from pid-file
---
ldirectord/systemd/ldirectord.service.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/ldirectord/systemd/ldirectord.service.in b/ldirectord/systemd/ldirectord.service.in
index 191f62a..aafc2dc 100644
--- a/ldirectord/systemd/ldirectord.service.in
+++ b/ldirectord/systemd/ldirectord.service.in
@@ -4,6 +4,7 @@ Documentation=man:ldirectord(8)
[Service]
ExecStart=@sbindir@/ldirectord start
+ExecStartPost=/usr/bin/sleep 0.1
ExecStartPost=/usr/bin/touch /var/lock/subsys/ldirectord
ExecStop=@sbindir@/ldirectord stop
ExecStopPost=@RM@ -f /var/lock/subsys/ldirectord
--
2.27.0

View File

@ -1,10 +1,11 @@
Name: resource-agents
Summary: Open Source HA Reusable Cluster Resource Scripts
Version: 4.2.0
Release: 2
Release: 3
License: GPLv2+ and LGPLv2+
URL: https://github.com/ClusterLabs/resource-agents
Source0: https://github.com/ClusterLabs/resource-agents/archive/v4.2.0.tar.gz
Patch0000: fix-failed-to-parse-pid-from-pid-file.patch
Obsoletes: heartbeat-resources <= %{version}
Provides: heartbeat-resources = %{version}
BuildRequires: automake autoconf pkgconfig gcc perl-interpreter perl-generators python2-devel
@ -105,5 +106,8 @@ export CFLAGS="$(echo '%{optflags}')"
%{_mandir}/man8/{ocf-tester.8*,ldirectord.8*}
%changelog
* Sat Nov 27 2021 wulei <wulei80@huawei.com> - 4.2.0-3
- Fix failed to parse pid from pid-file
* Thu Mar 5 2020 shijian <shijian16@huawei.com> - 4.2.0-2
- Package init
- Package init