Skip to contentSkip to conversation

Fix path for rpcbind in rpcbind.service.

PATCH In review NeilBrown 2 participants 2 messages Nov 24, 2016 – Nov 28, 2016

Subsystems (2)
lore
Share & tools
lore

NeilBrown

author
#0 lore raw

PATCH 1/1 Fix path for rpcbind in rpcbind.service.

Due to a miscommunication,
Commit: 0cc39c519278 ("Provide systemd unit files for rpcbind")
used sbindir as the location of rpcbind to put in the systemd unit file instead of bindir, which is where rpcbind gets installed.

So change those few instances of sbindir to bindir so that the unit file will have the correct path.

---
 configure.ac               | 6 +++---
 systemd/rpcbind.service.in | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
configure.ac +3 -3
index acc69149c862..f34f669dc7da 100644
@@ -61,9 +61,9 @@ AC_SEARCH_LIBS([pthread_create], [pthread])
 
 AC_CHECK_HEADERS([nss.h rpcsvc/mount.h])
 
-# make sbindir available for substitution in config file
+# make bindir available for substitution in config file
 # 2 "evals" needed to expand variable names
-AC_SUBST([_sbindir])
-AC_CONFIG_COMMANDS_PRE([eval eval _sbindir=$sbindir])
+AC_SUBST([_bindir])
+AC_CONFIG_COMMANDS_PRE([eval eval _bindir=$bindir])
 
 AC_OUTPUT([Makefile systemd/rpcbind.service])
systemd/rpcbind.service.in +1 -1
index c173b838bd42..e7e86da0c268 100644
@@ -11,7 +11,7 @@ After=rpcbind.socket
 [Service]
 Type=notify
 # distro can provide a drop-in adding EnvironmentFile=-/??? if needed.
-ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS -w -f
+ExecStart=@_bindir@/rpcbind $RPCBIND_OPTIONS -w -f
 
 [Install]
 WantedBy=multi-user.target
Signature · 1 line
2.10.2
#1 lore raw
Quoted 10 lines · NeilBrown

Due to a miscommunication,
Commit: 0cc39c519278 ("Provide systemd unit files for rpcbind")
used sbindir as the location of rpcbind to put in the systemd unit file instead of bindir, which is where rpcbind gets installed.

So change those few instances of sbindir to bindir so that the unit file will have the correct path.

Committed...

steved.

Quoted 47 lines
---
 configure.ac               | 6 +++---
 systemd/rpcbind.service.in | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
configure.ac +3 -3
index acc69149c862..f34f669dc7da 100644
@@ -61,9 +61,9 @@ AC_SEARCH_LIBS([pthread_create], [pthread])
 
 AC_CHECK_HEADERS([nss.h rpcsvc/mount.h])
 
-# make sbindir available for substitution in config file
+# make bindir available for substitution in config file
 # 2 "evals" needed to expand variable names
-AC_SUBST([_sbindir])
-AC_CONFIG_COMMANDS_PRE([eval eval _sbindir=$sbindir])
+AC_SUBST([_bindir])
+AC_CONFIG_COMMANDS_PRE([eval eval _bindir=$bindir])
 
 AC_OUTPUT([Makefile systemd/rpcbind.service])
systemd/rpcbind.service.in +1 -2
index c173b838bd42..e7e86da0c268 100644
@@ -11,7 +11,7 @@ After=rpcbind.socket
 [Service]
 Type=notify
 # distro can provide a drop-in adding EnvironmentFile=-/??? if needed.
-ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS -w -f
+ExecStart=@_bindir@/rpcbind $RPCBIND_OPTIONS -w -f
 
 [Install]
 WantedBy=multi-user.target
 
 
 
------------------------------------------------------------------------------

_______________________________________________
Libtirpc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libtirpc-devel