Skip to contentSkip to conversation

Move rpcbind.sock to /run

PATCH In review Petr Vorel 2 participants 2 messages Aug 30, 2024 – Aug 31, 2024

Subsystems (2)
lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 Move rpcbind.sock to /run

Most of the distros have /var/run as symlink to /run.

Because /var may be a separate partition, and could even be mounted via NFS, having to look directly to /run help to avoid issues rpcbind startup early in boot when /var might not be available.

---
Follow up for rpcbind patch which touches rpcbind.lock location.

Kind regards,
Petr

 tirpc/rpc/rpcb_prot.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tirpc/rpc/rpcb_prot.h +2 -2
index eb3a0c4..06138bc 100644
@@ -476,8 +476,8 @@ extern bool_t xdr_netbuf(XDR *, struct netbuf *);
 #define RPCBVERS_3 RPCBVERS
 #define RPCBVERS_4 RPCBVERS4
 
-#define _PATH_RPCBINDSOCK "/var/run/rpcbind.sock"
-#define _PATH_RPCBINDSOCK_ABSTRACT "\0/run/rpcbind.sock"
+#define _PATH_RPCBINDSOCK "/run/rpcbind.sock"
+#define _PATH_RPCBINDSOCK_ABSTRACT "\0" _PATH_RPCBINDSOCK
 
 #else /* ndef _KERNEL */
 #ifdef __cplusplus
Signature · 1 line
2.45.2
#1 lore raw
Quoted 7 lines · Petr Vorel

Most of the distros have /var/run as symlink to /run.

Because /var may be a separate partition, and could even be mounted via NFS, having to look directly to /run help to avoid issues rpcbind startup early in boot when /var might not be available.

Committed... (tag: libtirpc-1-3-6-rc1)

steved.

Quoted 24 lines

---
Follow up for rpcbind patch which touches rpcbind.lock location.

Kind regards,
Petr

  tirpc/rpc/rpcb_prot.h | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
tirpc/rpc/rpcb_prot.h +2 -2
index eb3a0c4..06138bc 100644
@@ -476,8 +476,8 @@ extern bool_t xdr_netbuf(XDR *, struct netbuf *);
  #define RPCBVERS_3 RPCBVERS
  #define RPCBVERS_4 RPCBVERS4
 
-#define _PATH_RPCBINDSOCK "/var/run/rpcbind.sock"
-#define _PATH_RPCBINDSOCK_ABSTRACT "\0/run/rpcbind.sock"
+#define _PATH_RPCBINDSOCK "/run/rpcbind.sock"
+#define _PATH_RPCBINDSOCK_ABSTRACT "\0" _PATH_RPCBINDSOCK
 
  #else /* ndef _KERNEL */
  #ifdef __cplusplus