Skip to contentSkip to conversation

open-isns: use /run instead of /var/run in systemd service file

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

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/1 open-isns: 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.

---
 ...sd.socket-use-run-instead-of-var-run.patch | 26 +++++++++++++++++++
 .../open-isns/open-isns_0.99.bb               |  4 ++-
 2 files changed, 29 insertions(+), 1 deletion(-)
 create mode 100644 meta-networking/recipes-support/open-isns/files/0001-isnsd.socket-use-run-instead-of-var-run.patch
meta-networking/recipes-support/open-isns/files/0001-isnsd.socket-use-run-instead-of-var-run.patch new file +26 -0
new file mode 100644
index 000000000..1dde1cae8
@@ -0,0 +1,26 @@
+From 9413921d5af5e5e38541f97fee0f1aa40024a3ed Mon Sep 17 00:00:00 2001
+From: Chen Qi <[email protected]>
+Date: Tue, 20 Oct 2020 13:21:57 +0800
+Subject: [PATCH] isnsd.socket: use /run instead of /var/run
+
+Upstream-Status: Pending
+
+Signed-off-by: Chen Qi <[email protected]>
+---
+ isnsd.socket | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/isnsd.socket b/isnsd.socket
+index 652cd46..7dfcf51 100644
+--- a/isnsd.socket
++++ b/isnsd.socket
+@@ -1,5 +1,5 @@
+ [Socket]
+-ListenStream=/var/run/isnsctl
++ListenStream=/run/isnsctl
+ PassCredentials=true
+ 
+ [Socket]
+-- 
+2.17.1
+
meta-networking/recipes-support/open-isns/open-isns_0.99.bb +3 -1
index a03b92f5f..eb04dfae3 100644
@@ -13,7 +13,9 @@ SECTION = "net"
 
 DEPENDS = "openssl"
 
-SRC_URI = "git://github.com/open-iscsi/open-isns"
+SRC_URI = "git://github.com/open-iscsi/open-isns \
+           file://0001-isnsd.socket-use-run-instead-of-var-run.patch \
+           "
 
 SRCREV = "cfdbcff867ee580a71bc9c18c3a38a6057df0150"
 
Signature · 1 line
2.17.1