aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>1997-11-16 03:49:12 +0000
committerBill Paul <wpaul@FreeBSD.org>1997-11-16 03:49:12 +0000
commitd8207d546dd15164214c5ef99460e416828d1056 (patch)
tree2a80a6281b0a293a72d90227ebadf2d166ffce43
parentd9cc92f584084e320bc8e1f437fd46843924762f (diff)
downloadsrc-d8207d546dd15164214c5ef99460e416828d1056.tar.gz
src-d8207d546dd15164214c5ef99460e416828d1056.zip
Notes
-rw-r--r--usr.sbin/ypserv/ypinit.825
-rw-r--r--usr.sbin/ypserv/ypinit.sh6
2 files changed, 18 insertions, 13 deletions
diff --git a/usr.sbin/ypserv/ypinit.8 b/usr.sbin/ypserv/ypinit.8
index e616c013b151..f64bc070cd76 100644
--- a/usr.sbin/ypserv/ypinit.8
+++ b/usr.sbin/ypserv/ypinit.8
@@ -28,10 +28,10 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
.\" THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $Id: ypinit.8,v 1.1 1997/11/10 20:59:09 wpaul Exp $
+.\" $Id: ypinit.8,v 1.1 1997/11/10 22:17:11 wpaul Exp $
.\"
.Dd November 10, 1997
-.Dt YPINIT 1
+.Dt YPINIT 8
.Os FreeBSD 3.0
.Sh NAME
.Nm ypinit
@@ -71,7 +71,7 @@ the ypservers map.
On a slave server,
.Nm
creates the
-.Pa /var/yp/$DOMAINNAME
+.Pa /var/yp/$DOMAINNAME ,
populates it with copies of the NIS maps from the master. The maps
are obtained from the master using the
.Xr ypxfr 8
@@ -82,7 +82,7 @@ the system is configured as an NIS client and is bound to the master
server,
.Nm
is able to use the
-.Xr ypwhich 8
+.Xr ypwhich 1
command to obtain a list of maps exported by the master server.
If the system is not configured as a client of the NIS master,
.Nm
@@ -91,11 +91,10 @@ exist on the master. The system administrator can edit the script and
modify the map list if necessary. Otherwise, indivudual maps can
be transfered manually from the master using
.Xr ypxfr 8 .
-.Pp
.Sh OPTIONS
-.Nm
+.Nm Ypinit
supports the following options:
-.Bl -tag -width Fl
+.Bl -tag -width indent
.It Fl m Op Ar domainname
Set up a master server. By default, the script sets up a server for
the system default domain. The user can override this default by specifying
@@ -148,7 +147,7 @@ Passwd database source file
Netgroup data source file
.It Pa /var/yp/ypservers
Ypservers source file (generated by
-.Nm ypinit )
+.Nm Ns )
.El
.Sh SEE ALSO
.Xr mknetid 8 ,
@@ -163,10 +162,16 @@ This version of
.Nm
is based on the
.Nm
-script in OpenBSD. It first appeared in FreeBSD in
+script in
+.Bx Open .
+It first appeared in
+.Bx Free
+in
.Fx 3.0 .
.Sh AUTHOR
The original script was written by
.An Mats O Jansson Aq moj@stacken.kth.se .
-It was modified for FreeBSD by
+It was modified for
+.Bx Free
+by
.An Bill Paul Aq wpaul@ctr.columbia.edu .
diff --git a/usr.sbin/ypserv/ypinit.sh b/usr.sbin/ypserv/ypinit.sh
index 66df23f734ca..e96eb311d604 100644
--- a/usr.sbin/ypserv/ypinit.sh
+++ b/usr.sbin/ypserv/ypinit.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: ypinit.sh,v 1.3 1997/11/10 20:48:54 wpaul Exp $
+# $Id: ypinit.sh,v 1.1 1997/11/10 22:17:13 wpaul Exp $
#
# ypinit.sh - setup an master or slave server.
# (Taken from OpenBSD and modified for FreeBSD.)
@@ -96,7 +96,7 @@ fi
if [ -z "${DOMAIN}" ]; then
cat << \__no_domain 1>&2
The local host's YP domain name has not been set. Please set it with
-the domainname(8) command or pass the domain as an argument to ypinit(8).
+the domainname(1) command or pass the domain as an argument to ypinit(8).
__no_domain
exit 1
@@ -107,7 +107,7 @@ HOST=`${HOSTNAME}`
if [ -z "${HOST}" ]; then
cat << \__no_hostname 1>&2
The local host's hostname has not been set. Please set it with the
-hostname(8) command.
+hostname(1) command.
__no_hostname
exit 1