4 # description: The bootparamd server allows older Sun workstations to \
5 # net boot from Linux boxes. It (along with rarp) is rarely \
6 # used anymore; bootp and dhcp have mostly replaced both of them.
7 # processname: rpc.bootparamd
8 # config: /etc/bootparams
10 # Source function library.
11 . /etc/rc.d/init.d/functions
14 . /etc/sysconfig/network
16 # Check that networking is up.
17 if is_yes "${NETWORKING}"; then
18 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
19 msg_network_down rpc.bootparamd
26 if [ "$1" != "stop" ]; then
27 check_portmapper || { nls "Error: portmap isn't running" && exit 0; }
31 # See how we were called.
34 # Check if the service is already running?
35 if [ ! -f /var/lock/subsys/rpc.bootparamd ]; then
36 msg_starting rpc.bootparamd
38 touch /var/lock/subsys/rpc.bootparamd
40 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.bootparamd
42 msg_already_running rpc.bootparamd
46 if [ -f /var/lock/subsys/rpc.bootparamd ]; then
47 msg_stopping rpc.bootparamd
48 killproc rpc.bootparamd
49 rm -f /var/lock/subsys/rpc.bootparamd >/dev/null 2>&1
51 msg_not_running rpc.bootparamd
64 msg_usage "$0 {start|stop|restart|force-reload|status}"