Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > c83e50267511ecff72557ff0fe13ba7b > files > 10

bootparamd-0.17-26.el5_7.1.src.rpm

#! /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

# Source function library.
. /etc/init.d/functions

# Get config.
. /etc/sysconfig/network

# Require /etc/bootparams
[ -f /etc/bootparams ] || exit 0

# Check that networking is up.
if [ ${NETWORKING} = "no" ]
then
	exit 0
fi

prog="bootparamd"
RETVAL=0

start() {
	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}"
	exit 1
	;;
esac

exit $?