#! /bin/sh # # chkconfig: - 60 20 # description: The bootparamd server allows older Sun workstations to \ # net boot from Linux boxes. It (along with rarp) is rarely \ # used anymore; bootp and dhcp have mostly replaced both of them. # processname: rpc.bootparamd # config: /etc/bootparams ### BEGIN INIT INFO # Provides: rpc.bootparamd # Required-Start: $network # Short-Description: bootparamd daemon # Description: The bootparamd server allows older Sun workstations to \ # net boot from Linux boxes. It (along with rarp) is rarely \ # used anymore; bootp and dhcp have mostly replaced both of them. ### END INIT INFO # Source function library. . /etc/init.d/functions # Get config. . /etc/sysconfig/network prog="bootparamd" RETVAL=0 start() { # Require /etc/bootparams [ -f /etc/bootparams ] || exit 6 # Check that networking is up. if [ ${NETWORKING} = "no" ] then exit 1 fi echo -n $"Starting $prog: " daemon rpc.bootparamd RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/bootparamd return $RETVAL } stop() { echo -n $"Stopping $prog: " killproc rpc.bootparamd RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/bootparamd return $RETVAL } restart() { stop start } # See how we were called. case "$1" in start) start ;; stop) stop ;; status) status rpc.bootparamd ;; restart|reload) restart ;; condrestart) [ -f /var/lock/subsys/bootparamd ] && restart || : ;; *) echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}" exit 3 ;; esac exit $?