[MBT] new ticket for pkg ypserv "/etc/rc.d/init.d/yppasswdd"
bugs at pld.org.pl
bugs at pld.org.pl
Sat Oct 26 16:11:02 CEST 2002
Date: 2002-10-26 16:11:02+02 Author: (kreutzm) <kreutzm at itp.uni-hannover.de>
Title: /etc/rc.d/init.d/yppasswdd
Ticket ID: #405
Ticket URL: http://bugs.pld.org.pl/?bug=405
Package: ypserv-1.3.12-4
Distribution: PLD-Ra.main
Category: improve request
Current state: opened
Text:
Idealy there should be one place to set up yp (preferably in the /etc directory) and any programm (including the Makefile in /var/yp) should use this file for the paths required.
Please apply at least the following patch and add the following file to the distro so that at least customization is more easily achieved. Thanks.
[root at lodda init.d]# diff -u yppasswdd.orig yppasswdd
--- yppasswdd.orig Sat Oct 26 15:53:09 2002
+++ yppasswdd Sat Oct 26 16:06:07 2002
@@ -26,13 +26,39 @@
exit 1
fi
+if [ "$YPFILEDIR" ]; then
+ YPSTRING=" -D $YPFILEDIR"
+fi
+
+if [ "$YPEDITPROG" ]; then
+ YPSTRING="$YPSTRING -E $YPEDITPROG"
+fi
+
+if [ "$YPPWDFILE" ]; then
+ YPSTRING="$YPSTRING -p $YPPWDFILE"
+fi
+
+if [ "$YPSHADOWFILE" ]; then
+ YPSTRING="$YPSTRING -s $YPSHADOWFILE"
+fi
+
+if [ "$YPMODPROG" ]; then
+ YPSTRING="$YPSTRING -x $YPMODPROG"
+fi
+
+
# See how we were called.
case "" in
start)
# Check if the service is already running?
if [ ! -f /var/lock/subsys/yppasswdd ]; then
msg_starting "NIS passwd"
- daemon rpc.yppasswdd
+ if [ "$YPSTRING" ]; then
+# daemon rpc.yppasswdd -D /var/yp/tqo.iqo.uni-hannover.de
+ daemon rpc.yppasswdd $YPSTRING
+ else
+ daemon rpc.yppasswdd
+ fi
else
msg_Already_Running rpc.yppasswdd
exit 1
And add /etc/sysconfig/yppasswdd:
#YPFILEDIR=/etc
#YPEDITPROG=
#YPPWDFILE=
#YPSHADOWFILE=
#YPMODPROG=
More information about the pld-bugs
mailing list