2014-06-30 13:56:10 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Starts rpcbind.
|
|
|
|
#
|
|
|
|
|
|
|
|
start() {
|
2015-10-03 23:29:57 +02:00
|
|
|
printf "Starting rpcbind: "
|
2014-06-30 13:56:10 +02:00
|
|
|
umask 077
|
|
|
|
start-stop-daemon -S -q -p /var/run/rpcbind.pid --exec /usr/bin/rpcbind
|
|
|
|
echo "OK"
|
|
|
|
}
|
|
|
|
stop() {
|
2015-10-03 23:29:57 +02:00
|
|
|
printf "Stopping rpcbind daemon: "
|
2014-06-30 13:56:10 +02:00
|
|
|
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 $?
|
|
|
|
|