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 rwalld
27 # See how we were called.
30 # Check if the service is already running?
31 if [ ! -f /var/lock/subsys/rpc.bootparamd ]; then
32 msg_starting rpc.bootparamd
34 touch /var/lock/subsys/rpc.bootparamd
36 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.bootparamd
38 msg_already_running rpc.bootparamd
42 if [ -f /var/lock/subsys/rpc.bootparamd ]; then
43 msg_stopping rpc.bootparamd
44 killproc rpc.bootparamd
45 rm -f /var/lock/subsys/rpc.bootparamd >/dev/null 2>&1
47 msg_not_running rpc.bootparamd
60 msg_usage "$0 {start|stop|restart|force-reload|status}"