summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.ypupdated/ypupdate
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1997-05-28 15:47:10 +0000
committerwpaul <wpaul@FreeBSD.org>1997-05-28 15:47:10 +0000
commit93c9d6f0d2e00568c4a86fdce41d2843a35dcb29 (patch)
tree2cec6e499fc9885ffaaca37c53d046064f0d2ecf /usr.sbin/rpc.ypupdated/ypupdate
parent7467e74fd1ffc0466987fdf1610da369c4f873e3 (diff)
parent90bef9e0aea2a3b97f16d0f3d3a23b6df8221e96 (diff)
downloadFreeBSD-src-93c9d6f0d2e00568c4a86fdce41d2843a35dcb29.zip
FreeBSD-src-93c9d6f0d2e00568c4a86fdce41d2843a35dcb29.tar.gz
This commit was generated by cvs2svn to compensate for changes in r26236,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'usr.sbin/rpc.ypupdated/ypupdate')
-rwxr-xr-xusr.sbin/rpc.ypupdated/ypupdate33
1 files changed, 33 insertions, 0 deletions
diff --git a/usr.sbin/rpc.ypupdated/ypupdate b/usr.sbin/rpc.ypupdated/ypupdate
new file mode 100755
index 0000000..a06247f
--- /dev/null
+++ b/usr.sbin/rpc.ypupdated/ypupdate
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# This script is invoked by rpc.ypupdatedd to propagate NIS maps
+# after the master map databases have been modified. It expects
+# to be passed two arguments: the name of the map that was updated
+# and the name of the domain where the map resides.
+# These are passed to /var/yp/Makefile.
+#
+# Comment out the LOG=yes line to disable logging.
+#
+# $Id: yppwupdate,v 1.3 1996/06/05 06:13:09 wpaul Exp $
+#
+
+LOG=yes
+LOGFILE=/var/yp/ypupdate.log
+
+umask 077
+
+if [ ! -f $LOGFILE ];
+then
+ /usr/bin/touch $LOGFILE
+ echo "# Edit /usr/libexec/yppwupdate to disable" >> $LOGFILE
+ echo "# logging to this file from yppasswdd." >> $LOGFILE
+ echo -n "# Log started on: " >> $LOGFILE
+ /bin/date >> $LOGFILE
+fi
+
+if [ ! $LOG ];
+then
+ cd /var/yp/$2; /usr/bin/make -f ../Makefile $1 2>&1
+else
+ cd /var/yp/$2; /usr/bin/make -f ../Makefile $1 >> $LOGFILE
+fi
OpenPOWER on IntegriCloud