24 lines
242 B
Bash
24 lines
242 B
Bash
#!/bin/sh
|
|
#
|
|
# /etc/rc.d/rpcbind: start/stop rpcbind daemon
|
|
#
|
|
|
|
case $1 in
|
|
start)
|
|
/sbin/rpcbind
|
|
;;
|
|
stop)
|
|
killall -q /sbin/rpcbind
|
|
;;
|
|
restart)
|
|
$0 stop
|
|
sleep 2
|
|
$0 start
|
|
;;
|
|
*)
|
|
echo "usage: $0 [start|stop|restart]"
|
|
;;
|
|
esac
|
|
|
|
# End of file
|