mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-15 21:43:00 +02:00
47 lines
710 B
Bash
47 lines
710 B
Bash
#!/bin/sh
|
|
########################################################################
|
|
# Begin $rc_base/init.d/rpcbind
|
|
#
|
|
# Description : rpcbind init script
|
|
#
|
|
# Authors : Jonatan Schlag jonatan.schlag@ipfire.org
|
|
#
|
|
# Version : 01.00
|
|
#
|
|
# Notes :
|
|
#
|
|
########################################################################
|
|
|
|
. /etc/sysconfig/rc
|
|
. $rc_functions
|
|
|
|
case "$1" in
|
|
start)
|
|
boot_mesg "Starting rpcbind"
|
|
loadproc /sbin/rpcbind
|
|
;;
|
|
|
|
stop)
|
|
boot_mesg "Stopping rpcbind"
|
|
killproc /sbin/rpcbind
|
|
;;
|
|
|
|
restart)
|
|
$0 stop
|
|
sleep 1
|
|
$0 start
|
|
;;
|
|
|
|
status)
|
|
statusproc /sbin/rpcbind
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart|status}"
|
|
exit 1
|
|
;;
|
|
|
|
esac
|
|
|
|
# End $rc_base/init.d/rpcbind
|