ypserv/ypserv-yppasswdd.init
cvsdist 085110d03e auto-import changelog data from ypserv-1.3.12-1.src.rpm
Tue Jul 24 2001 Florian La Roche <Florian.LaRoche@redhat.de>
- add gdbm-devel BuildReq #49767
- add ypxfrd init script #44845
- fix #44805
- fix #20042, adding option to yppasswdd startup
- own /var/yp
2004-09-09 15:14:21 +00:00

68 lines
1.3 KiB
Bash

#!/bin/bash
#
# yppasswdd: Starts the yp-passwdd, the YP password changing server
#
# Version: @(#) /etc/init.d/yppasswdd 1.0
#
# chkconfig: - 66 34
# description: yppasswdd is the RPC server that lets users change their \
# passwords in the presence of NIS (a.k.a. YP). It must be \
# run on the NIS master server for that NIS domain. The client \
# program is knwon as yppasswd in most cases.
# processname: rpc.yppasswdd
# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions
# getting the YP-Domainname
. /etc/sysconfig/network
RETVAL=0
start() {
echo -n $"Starting YP passwd service: "
daemon rpc.yppasswdd $YPPASSWDD_ARGS
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/yppasswdd
return $RETVAL
}
stop() {
echo -n $"Stopping YP passwd service: "
killproc rpc.yppasswdd
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/yppasswdd
echo
return $RETVAL
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status rpc.yppasswdd
;;
restart|reload)
stop
start
;;
condrestart)
if [ -f /var/lock/subsys/yppasswdd ]; then
stop
start
fi
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
exit 1
esac
exit $RETVAL