buildroot/package/rpcbind/S30rpcbind
James Hilliard aaf68256ab package/rpcbind: fix rpcbind path
Per upstream commit 9afccfcd5ab350d6bc72622f3d1ccfb9e54652b0
https://git.linux-nfs.org/?p=steved/rpcbind.git;a=commit;h=9afccfcd5ab350d6bc72622f3d1ccfb9e54652b0

The rpcbind binary was moved from bin to sbin.

As such we must update the path in our service/init files.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Tested-by: Carlos Santos <unixmania@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-10-05 23:34:36 +02:00

39 lines
454 B
Bash

#!/bin/sh
#
# Starts rpcbind.
#
start() {
printf "Starting rpcbind: "
umask 077
start-stop-daemon -S -q -p /var/run/rpcbind.pid --exec /usr/sbin/rpcbind
echo "OK"
}
stop() {
printf "Stopping rpcbind daemon: "
start-stop-daemon -K -q -p /var/run/rpcbind.pid
echo "OK"
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
restart
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?