ypinit(1M) ypinit(1M)
NAME
ypinit - build and install yellow pages database
SYNOPSIS
ypinit -m
ypinit -s master_name
DESCRIPTION
ypinit sets up a yellow pages (YP) server's database. It
can be used to set up a master server or a slave server.
You must be the superuser to run it. It asks a few
questions, which are self-explanatory, and reports success
or failure to the terminal.
It sets up a master server using the simple model in which
that server is master to all maps in the data base. This is
the way to bootstrap the YP system; later if you want you
can change the association of maps to masters by changing
the information in the YP map named ypmaps. All databases
are built from scratch, either from information available to
the program at runtime, or from the ASCII data base files in
/etc. The list of which files will be used to generate the
databases is below in the FILES section. All of these files
should be in their traditional form, rather than the
abbreviated form used on client machines, which primarily
use the YP services to access the same information.
A slave YP server database is set up by copying an existing
database from a running server. The master_name argument
should be the host name of YP server, which is either
actually the master server for all the maps, or a server the
data base of which is believed to be up-to-date and stable.
If your network uses different server machines acting as the
master of different maps, of course no single machine will
be the master of all maps. This doesn't matter; the yp data
bases will converge automatically in time, and the process
can be sped up somewhat by using yppush(1M) and yppull(1M).
Just choose a YP server which is up, reachable, and stable.
OPTIONS
-m Indicates that the local host is to be the YP master.
-s Set up a slave database.
FILES
/etc/yp/ypinit
/etc/passwd
/etc/group
/etc/hosts
/etc/networks
/etc/services
/etc/protocols
Page 1 (last mod. 1/15/87)
ypinit(1M) ypinit(1M)
/etc/netgroup
SEE ALSO
makedbm(1M), ypfiles(1M), yppush(1M), ypmake(1M).
Page 2 (last mod. 1/15/87)