1.\" $OpenBSD: ypinit.8,v 1.16 2013/07/16 11:13:34 schwarze Exp $ 2.\" 3.\" Copyright (c) 1997 Mats O Jansson <moj@stacken.kth.se> 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 16.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 19.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" 27.Dd $Mdocdate: July 16 2013 $ 28.Dt YPINIT 8 29.Os 30.Sh NAME 31.Nm ypinit 32.Nd create a YP server (master or slave) 33.Sh SYNOPSIS 34.Nm ypinit 35.Fl m Op Ar domainname 36.Nm ypinit 37.Fl s Ar master_server Op Ar domainname 38.Nm ypinit 39.Fl u Op Ar domainname 40.Sh DESCRIPTION 41.Nm 42may be used to set up a YP server, or to change the ypserver map. 43If 44.Ar domainname 45is not given, the default domainname will be used. 46.Pp 47The options are as follows: 48.Bl -tag -width Ds 49.It Fl m Op Ar domainname 50Set up a master YP server. 51.It Fl s Ar master_server Op Ar domainname 52Set up a slave YP server. 53.Ar master_server 54must be a running YP master server. 55.It Fl u Op Ar domainname 56Update the ypserver map on a YP master server, 57or create a new one if the old one has been deleted. 58.El 59.Sh SEE ALSO 60.Xr domainname 1 , 61.Xr Makefile.yp 8 , 62.Xr yp 8 , 63.Xr ypserv 8 64.Sh AUTHORS 65.An Mats O Jansson Aq Mt moj@stacken.kth.se 66