25 lines
796 B
Diff
25 lines
796 B
Diff
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
|
|
|