56141c1232
rpcbind must be started at boot time. Without this any nfs mount will fail. Signed-off-by: Sagaert Johan <sagaert.johan@skynet.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
39 lines
455 B
Bash
39 lines
455 B
Bash
#!/bin/sh
|
|
#
|
|
# Starts rpcbind.
|
|
#
|
|
|
|
start() {
|
|
echo -n "Starting rpcbind: "
|
|
umask 077
|
|
start-stop-daemon -S -q -p /var/run/rpcbind.pid --exec /usr/bin/rpcbind
|
|
echo "OK"
|
|
}
|
|
stop() {
|
|
echo -n "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 $?
|
|
|