pkg://ypbind-3.0-3.src.rpm:21950/ypbind.init
info downloads
#!/bin/sh
#
# ypbind: Starts the upbind Daemon
#
# Version: @(#) /etc/rc.d/init.d/yppasswd.init 1.0
#
# chkconfig: - 70 30
# description: This is a daemon which runs on NIS/YP clients and binds them \
# to a NIS domain. It must be running for systems based on glibc \
# to work as NIS clients, but it should not be enabled on systems \
# which are not using NIS.
# Source function library.
. /etc/rc.d/init.d/functions
# See how we were called.
case "$1" in
start)
daemon ypbind
echo
touch /var/lock/subsys/ypbind
;;
stop)
killproc ypbind
rm -f /var/lock/subsys/ypbind
echo
;;
status)
status ypbind
;;
restart)
$0 stop
$0 start
;;
*)
echo "*** Usage: ypbind {start|stop|status|restart}"
exit 1
esac
exit 0