Skip to contentSkip to conversation

resource-agents: use /run instead of /var/run in systemd service file

PATCH New Chen Qi 1 participant 1 message Oct 19, 2020

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/1 resource-agents: use /run instead of /var/run in systemd service file

/var/run has been deprecated by systemd, so use /run instead, as suggested by systemd.

---
 ...ervice.in-use-run-instead-of-var-run.patch | 31 +++++++++++++++++++
 .../resource-agents_4.5.0.bb                  |  1 +
 2 files changed, 32 insertions(+)
 create mode 100644 meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents/0001-ldirectord.service.in-use-run-instead-of-var-run.patch
meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents/0001-ldirectord.service.in-use-run-instead-of-var-run.patch new file +31 -0
new file mode 100644
index 0000000..0045cee
@@ -0,0 +1,31 @@
+From c739aa4fda8bae8e0aa7ed6af29c16392eb13a86 Mon Sep 17 00:00:00 2001
+From: Chen Qi <[email protected]>
+Date: Fri, 16 Oct 2020 16:24:24 +0800
+Subject: [PATCH] ldirectord.service.in: use /run instead of /var/run
+
+/var/run has been deprecated by systemd, so use /run instead,
+as suggested by systemd.
+
+Upstream-Status: Pending
+
+Signed-off-by: Chen Qi <[email protected]>
+---
+ ldirectord/systemd/ldirectord.service.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ldirectord/systemd/ldirectord.service.in b/ldirectord/systemd/ldirectord.service.in
+index 191f62af..7965b79f 100644
+--- a/ldirectord/systemd/ldirectord.service.in
++++ b/ldirectord/systemd/ldirectord.service.in
+@@ -8,7 +8,7 @@ ExecStartPost=/usr/bin/touch /var/lock/subsys/ldirectord
+ ExecStop=@sbindir@/ldirectord stop
+ ExecStopPost=@RM@ -f /var/lock/subsys/ldirectord
+ ExecReload=@sbindir@/ldirectord reload
+-PIDFile=/var/run/ldirectord.ldirectord.pid
++PIDFile=/run/ldirectord.ldirectord.pid
+ Type=forking
+ KillMode=none
+ 
+-- 
+2.17.1
+
meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents_4.5.0.bb +1 -0
index d9440d3..cc3ce89 100644
@@ -19,6 +19,7 @@ SRC_URI = "git://github.com/ClusterLabs/resource-agents \
            file://02-set-OCF_ROOT_DIR-to-libdir-ocf.patch \
            file://03-fix-header-defs-lookup.patch \
            file://fix-install-sh-not-found.patch \
+           file://0001-ldirectord.service.in-use-run-instead-of-var-run.patch \
           "
 
 SRCREV = "fee181320547365d7f8c88cca2b32801412b933d" 
Signature · 1 line
2.17.1