b50889dad8
Mon Apr 08 2002 Alex Larsson <alexl@redhat.com> 2.2-8 - Change the yppush patch to the patch from thorsten. Fri Apr 05 2002 Alex Larsson <alexl@redhat.com> 2.2-7 - Added patch to fix yppush timeout errors (#62429) Wed Mar 27 2002 Alex Larsson <alexl@redhat.com> 2.2-6 - Make yppasswdd source /etc/sysconf/yppasswd for options (#52253) Mon Mar 25 2002 Alex Larsson <alexl@redhat.com> 2.2-5 - Add patch that fixes generation of services.byname. (#41851) - Actually apply patch #5, seems like it got left out by misstake Fri Mar 22 2002 Alex Larsson <alexl@redhat.com> 2.2-4 - Changed Copyright from GNU to GPL Wed Jan 09 2002 Tim Powers <timp@redhat.com> - automated rebuild Sat Dec 08 2001 Florian La Roche <Florian.LaRoche@redhat.de> - fix restart initscript option #57129 - add a "gawk" requires #57002 - fix printcap bug #56993 - fix ypxfrd init script #55234 Wed Dec 05 2001 Florian La Roche <Florian.LaRoche@redhat.de> - update to 2.2 plus first official bug-fix Sat Nov 17 2001 Florian La Roche <Florian.LaRoche@redhat.de> - update to version 2.1, adjust all patches
84 lines
1.6 KiB
Bash
84 lines
1.6 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
|
|
|
|
# Get the settings
|
|
. /etc/sysconfig/yppasswdd
|
|
|
|
if [ "$ETCDIR" ]; then
|
|
YPPASSWDD_ARGS="$YPPASSWDD_ARGS -D $ETCDIR"
|
|
fi
|
|
|
|
if [ "$PASSWDFILE" ]; then
|
|
YPPASSWDD_ARGS="$YPPASSWDD_ARGS -p $PASSWDFILE"
|
|
fi
|
|
|
|
if [ "$SHADOWFILE" ]; then
|
|
YPPASSWDD_ARGS="$YPPASSWDD_ARGS -s $SHADOWFILE"
|
|
fi
|
|
|
|
|
|
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
|