#!/bin/sh
#
# yppasswd:     Starts the yp-password Daemon
#
# Version:      @(#) /etc/rc.d/init.d/yppasswd.init 1.0
#
# Author:       Joerg Mertin <smurphy@stargate.bln.sub.org>
#
# chkconfig: - 67 33
# description:  This server should be run on NIS servers which need to allow \
#		users on NIS clients to change their passwords. It does not \
#		need to be run on NIS clients.

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

# See how we were called.
case "$1" in
  start)
	echo -n "Starting YP password services: "
	daemon rpc.yppasswdd
	echo
	touch /var/lock/subsys/yppasswdd
	;;
  stop)
	echo -n "Stopping YP password services: "
	killproc rpc.yppasswdd
	rm -f /var/lock/subsys/yppasswdd
	echo
	;;
  status)
	status rpc.yppasswdd
	;;
  restart)
	$0 stop
	$0 start
	;;
  *)
	echo "Usage: yppasswd.init {start|stop|status|restart}"
	exit 1
esac

exit 0

