Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > ab8c47689a69b62a6df79cc85875f198 > files > 1

bootparamd-0.17-12mdv2008.1.x86_64.rpm

#! /bin/sh
#
# chkconfig: 345 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

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

RETVAL=0

start() {
	gprintf "Starting bootparamd services: "
	daemon rpc.bootparamd
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/bootparamd
	return $RETVAL
}	

stop() {
	gprintf "Stopping bootparamd services: "
	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 || :
	;;
  *)
	gprintf "Usage: bootparamd {start|stop|status|restart|reload}\n"
	exit 1
	;;
esac

exit $?