python-pyasn: bump to version 1.6.0b1
[buildroot-gz.git] / package / rpcbind / S30rpcbind
blob532d3f8866ae6063e711a03ca6fa8c8c40cd1ad3
1 #!/bin/sh
3 # Starts rpcbind.
6 start() {
7 printf "Starting rpcbind: "
8 umask 077
9 start-stop-daemon -S -q -p /var/run/rpcbind.pid --exec /usr/bin/rpcbind
10 echo "OK"
12 stop() {
13 printf "Stopping rpcbind daemon: "
14 start-stop-daemon -K -q -p /var/run/rpcbind.pid
15 echo "OK"
17 restart() {
18 stop
19 start
22 case "$1" in
23 start)
24 start
26 stop)
27 stop
29 restart|reload)
30 restart
33 echo "Usage: $0 {start|stop|restart}"
34 exit 1
35 esac
37 exit $?