1998-08-23 22:07:21 +00:00
|
|
|
.\"
|
2004-07-06 13:16:49 +00:00
|
|
|
.\" Copyright (c) 1997-2004 Erez Zadok
|
1998-08-23 22:07:21 +00:00
|
|
|
.\" Copyright (c) 1990 Jan-Simon Pendry
|
|
|
|
.\" Copyright (c) 1990 Imperial College of Science, Technology & Medicine
|
|
|
|
.\" Copyright (c) 1990 The Regents of the University of California.
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This code is derived from software contributed to Berkeley by
|
|
|
|
.\" Jan-Simon Pendry at Imperial College, London.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgment:
|
|
|
|
.\" This product includes software developed by the University of
|
|
|
|
.\" California, Berkeley and its contributors.
|
|
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" %W% (Berkeley) %G%
|
|
|
|
.\"
|
2004-07-06 13:16:49 +00:00
|
|
|
.\" $Id: amd.conf.5,v 1.7.2.10 2004/01/21 04:04:58 ib42 Exp $
|
1999-09-15 05:45:17 +00:00
|
|
|
.\" $FreeBSD$
|
1998-08-23 22:07:21 +00:00
|
|
|
.\"
|
1998-09-12 04:04:59 +00:00
|
|
|
.Dd April 7, 1997
|
|
|
|
.Dt AMD.CONF 5
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm amd.conf
|
|
|
|
.Nd amd configuration file
|
|
|
|
.Sh SYNOPSIS
|
2001-01-10 14:01:39 +00:00
|
|
|
.Nm
|
1998-09-12 04:04:59 +00:00
|
|
|
.Sh DESCRIPTION
|
1998-08-23 22:07:21 +00:00
|
|
|
The
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
file is the configuration file for amd, as part of the am-utils suite.
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pp
|
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
contains runtime configuration information for the
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xr amd 8
|
1998-08-23 22:07:21 +00:00
|
|
|
automounter program.
|
1998-09-12 04:04:59 +00:00
|
|
|
.Sh FILE FORMAT
|
2005-06-16 20:21:03 +00:00
|
|
|
The file consists of sections and parameters.
|
|
|
|
A section begins with the
|
1998-08-23 22:07:21 +00:00
|
|
|
name of the section in square brackets and continues until the next section
|
2005-06-16 20:21:03 +00:00
|
|
|
begins or the end of the file is reached.
|
|
|
|
Sections contain parameters of
|
|
|
|
the form
|
1998-09-12 04:04:59 +00:00
|
|
|
.Sq name = value .
|
|
|
|
.Pp
|
1998-08-23 22:07:21 +00:00
|
|
|
The file is line-based - that is, each newline-terminated line represents
|
2005-06-16 20:21:03 +00:00
|
|
|
either a comment, a section name or a parameter.
|
|
|
|
No line-continuation
|
1998-08-23 22:07:21 +00:00
|
|
|
syntax is available.
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pp
|
1998-08-23 22:07:21 +00:00
|
|
|
Section, parameter names and their values are case sensitive.
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pp
|
2005-06-16 20:21:03 +00:00
|
|
|
Only the first equals sign in a parameter is significant.
|
|
|
|
Whitespace before
|
|
|
|
or after the first equals sign is discarded.
|
|
|
|
Leading, trailing and
|
|
|
|
internal whitespace in section and parameter names is irrelevant.
|
|
|
|
Leading
|
|
|
|
and trailing whitespace in a parameter value is discarded.
|
|
|
|
Internal
|
1998-08-23 22:07:21 +00:00
|
|
|
whitespace within a parameter value is not allowed, unless the whole
|
2005-06-16 20:21:03 +00:00
|
|
|
parameter value is quoted with double quotes as in
|
2001-01-10 14:01:39 +00:00
|
|
|
.Sq name = Qq some\ value .
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pp
|
1998-08-23 22:07:21 +00:00
|
|
|
Any line beginning with a pound sign (#) is ignored, as are lines containing
|
|
|
|
only whitespace.
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pp
|
1998-08-23 22:07:21 +00:00
|
|
|
The values following the equals sign in parameters are all either a string
|
|
|
|
(no quotes needed if string does not include spaces) or a boolean, which may
|
2005-06-16 20:21:03 +00:00
|
|
|
be given as yes/no.
|
|
|
|
Case is significant in all values.
|
|
|
|
Some items such as
|
1998-08-23 22:07:21 +00:00
|
|
|
cache timeouts are numeric.
|
1998-09-12 04:04:59 +00:00
|
|
|
.Sh SECTIONS
|
2001-01-10 14:01:39 +00:00
|
|
|
.Ss "The [global] section"
|
2005-06-16 20:21:03 +00:00
|
|
|
Parameters in this section either apply to
|
2001-01-10 14:01:39 +00:00
|
|
|
.Nm amd
|
2005-06-16 20:21:03 +00:00
|
|
|
as a whole, or to all other regular map sections which follow.
|
|
|
|
There
|
1998-09-12 04:04:59 +00:00
|
|
|
should be only one global section defined in one configuration file.
|
|
|
|
.Pp
|
1998-08-23 22:07:21 +00:00
|
|
|
It is highly recommended that this section be specified first in the
|
2005-06-16 20:21:03 +00:00
|
|
|
configuration file.
|
|
|
|
If it is not, then regular map sections which precede
|
1998-08-23 22:07:21 +00:00
|
|
|
it will not use global values defined later.
|
2001-01-10 14:01:39 +00:00
|
|
|
.Ss "Regular [/map] sections"
|
1998-08-23 22:07:21 +00:00
|
|
|
Parameters in regular (non-global) sections apply to a single map entry.
|
|
|
|
For example, if the map section
|
1998-09-12 04:04:59 +00:00
|
|
|
.Bq Pa /homes
|
1998-08-23 22:07:21 +00:00
|
|
|
is defined, then all parameters following it will be applied to the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pa /homes
|
1998-08-23 22:07:21 +00:00
|
|
|
amd-managed mount point.
|
1998-09-12 04:04:59 +00:00
|
|
|
.Sh PARAMETERS
|
2001-01-10 14:01:39 +00:00
|
|
|
.Ss "Parameters common to all sections"
|
1998-08-23 22:07:21 +00:00
|
|
|
These parameters can be specified either in the global or a map specific
|
2005-06-16 20:21:03 +00:00
|
|
|
section.
|
|
|
|
Entries specified in a map-specific section override the default
|
|
|
|
value or one defined in the global section.
|
|
|
|
If such a common parameter is
|
1998-08-23 22:07:21 +00:00
|
|
|
specified only in the global section, it is applicable to all regular map
|
|
|
|
sections that follow.
|
2001-01-10 14:01:39 +00:00
|
|
|
.Bl -tag -width 4n
|
|
|
|
.It Ic browsable_dirs Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(string, default=no)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
2005-06-16 20:21:03 +00:00
|
|
|
If
|
|
|
|
.Qq yes ,
|
1998-09-12 04:04:59 +00:00
|
|
|
then amd's top-level mount points will be browsable to
|
|
|
|
.Xr readdir 3
|
2005-06-16 20:21:03 +00:00
|
|
|
calls.
|
|
|
|
This means you could run for example
|
1998-11-20 08:12:05 +00:00
|
|
|
.Xr ls 1
|
2005-06-16 20:21:03 +00:00
|
|
|
and see what keys are available to mount in that directory.
|
|
|
|
Not all entries
|
|
|
|
are made visible to
|
2004-03-24 10:25:24 +00:00
|
|
|
.Xr readdir 3 :
|
2005-06-16 20:21:03 +00:00
|
|
|
the
|
2004-03-24 10:25:24 +00:00
|
|
|
.Qq Pa /default
|
2005-06-16 20:21:03 +00:00
|
|
|
entry, wildcard entries, and those with a
|
|
|
|
.Qq Pa /
|
|
|
|
in them are not included.
|
|
|
|
If you specify
|
2004-03-24 10:25:24 +00:00
|
|
|
.Qq full
|
2005-06-16 20:21:03 +00:00
|
|
|
to this option, all but
|
2004-03-24 10:25:24 +00:00
|
|
|
.Qq Pa /default
|
2005-06-16 20:21:03 +00:00
|
|
|
will be visible.
|
|
|
|
Note that if you run a command which will attempt to
|
2004-03-24 10:25:24 +00:00
|
|
|
.Xr stat 2
|
2005-06-16 20:21:03 +00:00
|
|
|
the entries, such as often done by
|
2004-03-24 10:25:24 +00:00
|
|
|
.Qq ls -l
|
|
|
|
or
|
|
|
|
.Qq ls -F ,
|
|
|
|
.Nm amd
|
2005-06-16 20:21:03 +00:00
|
|
|
will attempt to mount
|
2004-03-24 10:25:24 +00:00
|
|
|
.Em every
|
2005-06-16 20:21:03 +00:00
|
|
|
entry in that map.
|
|
|
|
This is often called a
|
2004-03-24 10:25:24 +00:00
|
|
|
.Dq mount storm .
|
|
|
|
.It Ic map_options Xo
|
|
|
|
(string, default no options)
|
|
|
|
.Xc
|
2005-06-16 20:21:03 +00:00
|
|
|
This option is the same as specifying map options on the command line to
|
2004-03-24 10:25:24 +00:00
|
|
|
.Nm amd ,
|
|
|
|
such as
|
|
|
|
.Ql cache\&:\&=all .
|
|
|
|
.It Ic map_type Xo
|
|
|
|
(string, default search all map types)
|
|
|
|
.Xc
|
2005-06-16 20:21:03 +00:00
|
|
|
If specified, amd will initialize the map only for the type given.
|
2004-03-24 10:25:24 +00:00
|
|
|
This is useful to avoid the default map search type used by
|
|
|
|
.Nm amd
|
|
|
|
which takes longer and can have undesired side-effects such as initializing
|
|
|
|
.Tn NIS
|
2005-06-16 20:21:03 +00:00
|
|
|
even if not used.
|
|
|
|
Possible values are:
|
2004-03-24 10:25:24 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width "nisplus" -compact
|
|
|
|
.It Ic file
|
|
|
|
plain files
|
|
|
|
.It Ic hesiod
|
|
|
|
Hesiod name service from MIT
|
|
|
|
.It Ic ldap
|
|
|
|
Lightweight Directory Access Protocol
|
|
|
|
.It Ic ndbm
|
|
|
|
(New) dbm style hash files
|
|
|
|
.It Ic nis
|
|
|
|
Network Information Services (version 2)
|
|
|
|
.It Ic nisplus
|
|
|
|
Network Information Services Plus (version 3)
|
|
|
|
.It Ic passwd
|
|
|
|
local password files
|
2005-06-16 20:21:03 +00:00
|
|
|
.It Ic union
|
2004-03-24 10:25:24 +00:00
|
|
|
union maps
|
|
|
|
.El
|
|
|
|
.It Ic mount_type Xo
|
|
|
|
(string, default=nfs)
|
|
|
|
.Xc
|
|
|
|
All amd mount types must be
|
|
|
|
.Tn NFS .
|
|
|
|
That is,
|
|
|
|
.Nm amd
|
|
|
|
is an
|
|
|
|
.Tn NFS
|
2005-06-16 20:21:03 +00:00
|
|
|
server on the map mount points, for the local host it is running on.
|
|
|
|
If
|
|
|
|
.Qq autofs
|
2004-03-24 10:25:24 +00:00
|
|
|
is specified, amd will log an error and convert it to
|
|
|
|
.Tn NFS .
|
|
|
|
.It Ic search_path Xo
|
|
|
|
(string, default no search path)
|
|
|
|
.Xc
|
2005-06-16 20:21:03 +00:00
|
|
|
This provides a
|
2004-03-24 10:25:24 +00:00
|
|
|
(colon-delimited)
|
2005-06-16 20:21:03 +00:00
|
|
|
search path for file maps.
|
|
|
|
Using a search path, sites can allow for
|
2004-03-24 10:25:24 +00:00
|
|
|
local map customizations and overrides, and can query distributed maps in
|
|
|
|
several locations as needed.
|
|
|
|
.El
|
|
|
|
.Ss "Parameters applicable to the global section only"
|
|
|
|
.Bl -tag -width 4n
|
|
|
|
.It Ic arch Xo
|
|
|
|
(string, default to compiled in value)
|
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Allows you to override the value of the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Va arch
|
|
|
|
.Nm amd
|
|
|
|
variable.
|
2004-03-24 10:25:24 +00:00
|
|
|
.It Ic auto_dir Xo (string, default= Ns Pa /a )
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
2005-06-16 20:21:03 +00:00
|
|
|
Same as the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Fl a
|
|
|
|
option to
|
|
|
|
.Nm amd .
|
|
|
|
This sets the private directory where amd will create sub-directories for its
|
|
|
|
real mount points.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic cache_duration Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(numeric, default=300)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Same as the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Fl c
|
|
|
|
option to
|
|
|
|
.Nm amd .
|
|
|
|
Sets the duration in seconds that looked up map entries remain in the cache.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic cluster Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(string, default no cluster)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Same as the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Fl C
|
|
|
|
option to
|
|
|
|
.Nm amd .
|
|
|
|
Specifies the alternate
|
2001-01-10 14:01:39 +00:00
|
|
|
.Tn HP-UX
|
1998-09-12 04:04:59 +00:00
|
|
|
cluster to use.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic debug_options Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(string, default no debug options)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
2005-06-16 20:21:03 +00:00
|
|
|
Same as the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Fl D
|
|
|
|
option to
|
1998-11-30 22:25:24 +00:00
|
|
|
.Nm amd .
|
1998-09-12 04:04:59 +00:00
|
|
|
Specify any debugging options for
|
|
|
|
.Nm amd .
|
|
|
|
Works only if am-utils was configured for debugging using the
|
2001-01-10 14:01:39 +00:00
|
|
|
.Fl -enable-debug
|
|
|
|
option.
|
1998-09-12 04:04:59 +00:00
|
|
|
The
|
|
|
|
.Qq mem
|
|
|
|
option alone can be turned on via
|
2001-01-10 14:01:39 +00:00
|
|
|
.Fl -enable-debug Ns = Ns Ic mem .
|
2005-06-16 20:21:03 +00:00
|
|
|
Otherwise debugging options are ignored.
|
|
|
|
Options are comma delimited, and can
|
1998-09-12 04:04:59 +00:00
|
|
|
be preceded by the string
|
|
|
|
.Qq no
|
2005-06-16 20:21:03 +00:00
|
|
|
to negate their meaning.
|
|
|
|
You can get the list of supported debugging options
|
|
|
|
by running
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm amd Fl v .
|
|
|
|
Possible values are:
|
|
|
|
.Pp
|
2001-01-10 14:01:39 +00:00
|
|
|
.Bl -tag -width "daemon" -compact
|
2005-06-16 20:21:03 +00:00
|
|
|
.It Ic all
|
1998-09-12 04:04:59 +00:00
|
|
|
all options
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic amq
|
2005-06-16 20:21:03 +00:00
|
|
|
register for
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xr amq 8
|
|
|
|
.It Ic daemon
|
1998-09-12 04:04:59 +00:00
|
|
|
enter daemon mode
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic fork
|
1998-09-12 04:04:59 +00:00
|
|
|
fork server
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic full
|
1998-09-12 04:04:59 +00:00
|
|
|
program trace
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic info
|
1998-09-12 04:04:59 +00:00
|
|
|
info service specific debugging
|
2001-08-07 15:48:51 +00:00
|
|
|
(hesiod, nis, etc.)
|
2005-06-16 20:21:03 +00:00
|
|
|
.It Ic mem
|
1998-09-12 04:04:59 +00:00
|
|
|
trace memory allocations
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic mtab
|
1998-09-12 04:04:59 +00:00
|
|
|
use local
|
|
|
|
.Pa ./mtab
|
|
|
|
file
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic str
|
1998-09-12 04:04:59 +00:00
|
|
|
debug string munging
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic test
|
1998-09-12 04:04:59 +00:00
|
|
|
full debug but no daemon
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic trace
|
1998-09-12 04:04:59 +00:00
|
|
|
protocol trace
|
|
|
|
.El
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic dismount_interval Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(numeric, default=120)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Same as the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Fl w
|
|
|
|
option to
|
|
|
|
.Nm amd .
|
|
|
|
Specify, in seconds, the time between attempts to dismount file systems that
|
2005-06-16 20:21:03 +00:00
|
|
|
have exceeded their cached times.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic fully_qualified_hosts Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(string, default=no)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-09-12 04:04:59 +00:00
|
|
|
If
|
|
|
|
.Qq yes ,
|
2004-03-24 10:25:24 +00:00
|
|
|
.Nm amd
|
2005-06-16 20:21:03 +00:00
|
|
|
will perform RPC authentication using fully-qualified host names.
|
|
|
|
This is
|
1998-08-23 22:07:21 +00:00
|
|
|
necessary for some systems, and especially when performing cross-domain
|
2005-06-16 20:21:03 +00:00
|
|
|
mounting.
|
|
|
|
For this function to work, the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm amd
|
2005-06-16 20:21:03 +00:00
|
|
|
variable
|
1998-09-12 04:04:59 +00:00
|
|
|
.Va ${hostd}
|
|
|
|
is used, requiring that
|
|
|
|
.Va ${domain}
|
|
|
|
not be null.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic hesiod_base Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(string, default=automount)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Specify the base name for hesiod maps.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic karch Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(string, default to karch of the system)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Same as the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Fl k
|
|
|
|
option to
|
|
|
|
.Nm amd .
|
2005-06-16 20:21:03 +00:00
|
|
|
Allows you to override the kernel-architecture of your system.
|
|
|
|
Useful for
|
1998-09-12 04:04:59 +00:00
|
|
|
example on Sun
|
2001-08-07 15:48:51 +00:00
|
|
|
(Sparc)
|
1998-09-12 04:04:59 +00:00
|
|
|
machines, where you can build one
|
|
|
|
.Nm amd
|
|
|
|
binary and run it on multiple machines, yet you want each one to get the
|
2005-06-16 20:21:03 +00:00
|
|
|
correct
|
1998-09-12 04:04:59 +00:00
|
|
|
.Va karch
|
|
|
|
variable set
|
2001-08-07 15:48:51 +00:00
|
|
|
(for example, sun4c, sun4m, sun4u, etc.)
|
1998-09-12 04:04:59 +00:00
|
|
|
Note that if not
|
|
|
|
specified,
|
|
|
|
.Nm amd
|
|
|
|
will use
|
1999-08-14 21:37:28 +00:00
|
|
|
.Xr uname 3
|
1998-09-12 04:04:59 +00:00
|
|
|
to figure out the kernel architecture of the machine.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic ldap_base Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(string, default not set)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Specify the base name for LDAP.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic ldap_cache_maxmem Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(numeric, default=131072)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Specify the maximum memory amd should use to cache LDAP entries.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic ldap_cache_seconds Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(numeric, default=0)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Specify the number of seconds to keep entries in the cache.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic ldap_hostports Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(string, default not set)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Specify LDAP-specific values such as country and organization.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic local_domain Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(string, default no sub-domain)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Same as the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Fl d
|
|
|
|
option to
|
|
|
|
.Nm amd .
|
2005-06-16 20:21:03 +00:00
|
|
|
Specify the local domain name.
|
|
|
|
If this option is not given the domain name is
|
1998-09-12 04:04:59 +00:00
|
|
|
determined from the hostname by removing the first component of the
|
|
|
|
fully-qualified host name.
|
2004-03-24 10:25:24 +00:00
|
|
|
.It Ic log_file Xo (string, default= Ns Pa /dev/stderr )
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Same as the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Fl l
|
|
|
|
option to
|
|
|
|
.Nm amd .
|
|
|
|
Specify a file name to log
|
|
|
|
.Nm amd
|
2005-06-16 20:21:03 +00:00
|
|
|
events to.
|
|
|
|
If the string
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pa /dev/stderr
|
|
|
|
is specified,
|
|
|
|
.Nm amd
|
2005-06-16 20:21:03 +00:00
|
|
|
will send its events to the standard error file descriptor.
|
|
|
|
IF the string
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pa syslog
|
|
|
|
is given,
|
|
|
|
.Nm amd
|
|
|
|
will record its events with the system logger
|
1999-08-18 05:55:22 +00:00
|
|
|
.Xr syslogd 8 .
|
1998-09-12 04:04:59 +00:00
|
|
|
The default syslog facility used is
|
|
|
|
.Ev LOG_DAEMON .
|
|
|
|
If you wish to change it, append its name to the log file name, delimited by a
|
2005-06-16 20:21:03 +00:00
|
|
|
single colon.
|
|
|
|
For example, if
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pa logfile
|
1998-08-23 22:07:21 +00:00
|
|
|
is the string
|
1998-09-12 04:04:59 +00:00
|
|
|
.Qq syslog:local7
|
|
|
|
then
|
|
|
|
.Nm amd
|
|
|
|
will log messages via
|
|
|
|
.Xr syslog 3
|
|
|
|
using the
|
|
|
|
.Ev LOG_LOCAL7
|
|
|
|
facility
|
2001-08-07 15:48:51 +00:00
|
|
|
(if it exists on the system).
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic log_options Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(string, default no logging options)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Same as the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Fl x
|
|
|
|
option to
|
|
|
|
.Nm amd .
|
|
|
|
Specify any logging options for
|
|
|
|
.Nm amd .
|
|
|
|
Options are comma delimited, and can be preceded by the string
|
|
|
|
.Dq no
|
2005-06-16 20:21:03 +00:00
|
|
|
to negate their meaning.
|
|
|
|
The
|
1998-09-12 04:04:59 +00:00
|
|
|
.Dq debug
|
2001-01-10 14:01:39 +00:00
|
|
|
logging option is only available if am-utils was configured with
|
1998-09-12 04:04:59 +00:00
|
|
|
.Fl -enable-debug .
|
2004-03-24 10:25:24 +00:00
|
|
|
You can get the list of supported debugging and logging options by running
|
|
|
|
.Nm amd Fl H .
|
1998-09-12 04:04:59 +00:00
|
|
|
Possible values are:
|
|
|
|
.Pp
|
2001-01-10 14:01:39 +00:00
|
|
|
.Bl -tag -width "warning" -compact
|
2005-06-16 20:21:03 +00:00
|
|
|
.It Ic all
|
1998-09-12 04:04:59 +00:00
|
|
|
all messages
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic debug
|
1998-09-12 04:04:59 +00:00
|
|
|
debug messages
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic error
|
1998-09-12 04:04:59 +00:00
|
|
|
non-fatal system errors
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic fatal
|
1998-09-12 04:04:59 +00:00
|
|
|
fatal errors
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic info
|
1998-09-12 04:04:59 +00:00
|
|
|
information
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic map
|
1998-09-12 04:04:59 +00:00
|
|
|
map errors
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic stats
|
1998-09-12 04:04:59 +00:00
|
|
|
additional statistical information
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic user
|
1998-09-12 04:04:59 +00:00
|
|
|
non-fatal user errors
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic warn
|
1998-09-12 04:04:59 +00:00
|
|
|
warnings
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic warning
|
1998-09-12 04:04:59 +00:00
|
|
|
warnings
|
|
|
|
.El
|
2004-03-24 10:25:24 +00:00
|
|
|
.It Ic nfs_proto Xo
|
|
|
|
(string, default to trying version tcp then udp)
|
|
|
|
.Xc
|
2005-06-16 20:21:03 +00:00
|
|
|
By default, amd tries TCP and then UDP.
|
|
|
|
This option forces the overall
|
2004-03-24 10:25:24 +00:00
|
|
|
.Tn NFS
|
2005-06-16 20:21:03 +00:00
|
|
|
protocol used to TCP or UDP.
|
|
|
|
It overrides what is in the amd maps, and is
|
|
|
|
useful when amd is compiled with NFSv3 support that may not be stable.
|
|
|
|
With
|
2004-03-24 10:25:24 +00:00
|
|
|
this option you can turn off the complete usage of NFSv3 dynamically
|
|
|
|
(without having to recompile amd) until such time as NFSv3 support is
|
|
|
|
desired again.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic nfs_retransmit_counter Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(numeric, default=110)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Same as the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Ic counter
|
|
|
|
part of the
|
|
|
|
.Fl t Ar interval.counter
|
|
|
|
option to
|
|
|
|
.Nm amd .
|
|
|
|
Specifies the retransmit counter's value in tenths of seconds.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic nfs_retry_interval Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(numeric, default=8)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Same as the
|
2004-03-24 10:25:24 +00:00
|
|
|
.Ic interval
|
2005-06-16 20:21:03 +00:00
|
|
|
part of the
|
2004-03-24 10:25:24 +00:00
|
|
|
.Fl t Ar interval.counter
|
|
|
|
option to
|
|
|
|
.Nm amd .
|
|
|
|
Specifies the
|
|
|
|
.Tn NFS
|
|
|
|
timeout interval, in tenths of seconds, between NFS/RPC retries (for UDP only).
|
2003-09-02 15:42:57 +00:00
|
|
|
This is the value that the kernel will use to
|
|
|
|
communicate with amd.
|
2004-03-24 10:25:24 +00:00
|
|
|
.Pp
|
|
|
|
.Nm Amd
|
|
|
|
relies on the kernel RPC retransmit mechanism to trigger mount retries.
|
2003-09-02 15:42:57 +00:00
|
|
|
The values of the
|
2004-03-24 10:25:24 +00:00
|
|
|
.Ic nfs_retransmit_counter
|
2003-09-02 15:42:57 +00:00
|
|
|
and the
|
2004-03-24 10:25:24 +00:00
|
|
|
.Ic nfs_retry_interval
|
2005-06-16 20:21:03 +00:00
|
|
|
parameters change the overall retry interval.
|
|
|
|
Too long an interval gives
|
2003-09-02 15:42:57 +00:00
|
|
|
poor interactive response; too short an interval causes excessive retries.
|
2004-07-06 13:16:49 +00:00
|
|
|
.It Ic nfs_allow_insecure_port Xo
|
|
|
|
(string, default=no).
|
|
|
|
.Xc
|
|
|
|
Normally amd will refuse requests coming from unprivileged ports (i.e.
|
|
|
|
ports >= 1024 on Unix systems), so that only privileged users and the kernel
|
2005-06-16 20:21:03 +00:00
|
|
|
can send NFS requests to it.
|
|
|
|
However, some kernels (certain versions of
|
2004-07-06 13:16:49 +00:00
|
|
|
Darwin, MacOS X, and Linux) have bugs that cause them to use unprivileged
|
|
|
|
ports in certain situations, which causes amd to stop dead in its
|
2005-06-16 20:21:03 +00:00
|
|
|
tracks.
|
|
|
|
This parameter allows amd to operate normally even on such systems,
|
|
|
|
at the expense of a slight decrease in the security of its operations.
|
|
|
|
If
|
2004-07-06 13:16:49 +00:00
|
|
|
you see messages like "ignoring request from foo:1234, port not reserved"
|
|
|
|
in your amd log, try enabling this parameter and give it another go.
|
2004-03-24 10:25:24 +00:00
|
|
|
.It Ic nfs_vers Xo
|
|
|
|
(numeric, default to trying version 3 then 2)
|
|
|
|
.Xc
|
2005-06-16 20:21:03 +00:00
|
|
|
By default, amd tries version 3 and then version 2.
|
|
|
|
This option forces the
|
2004-03-24 10:25:24 +00:00
|
|
|
overall
|
|
|
|
.Tn NFS
|
2005-06-16 20:21:03 +00:00
|
|
|
protocol used to version 3 or 2.
|
|
|
|
It overrides what is in the
|
2004-03-24 10:25:24 +00:00
|
|
|
amd maps, and is useful when amd is compiled with NFSv3 support that may not
|
2005-06-16 20:21:03 +00:00
|
|
|
be stable.
|
|
|
|
With this option you can turn off the complete usage of NFSv3
|
2004-03-24 10:25:24 +00:00
|
|
|
dynamically (without having to recompile amd) until such time as NFSv3
|
|
|
|
support is desired again.
|
|
|
|
.It Ic nis_domain Xo
|
|
|
|
(string, default to local
|
|
|
|
.Tn NIS
|
|
|
|
domain name)
|
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Same as the
|
2004-03-24 10:25:24 +00:00
|
|
|
.Fl y
|
|
|
|
option to
|
|
|
|
.Nm amd .
|
|
|
|
Specify an alternative
|
|
|
|
.Tn NIS
|
|
|
|
domain from which to fetch the
|
|
|
|
.Tn NIS
|
2005-06-16 20:21:03 +00:00
|
|
|
maps.
|
|
|
|
The default is the system domain name.
|
|
|
|
This option is ignored if
|
2004-03-24 10:25:24 +00:00
|
|
|
.Tn NIS
|
|
|
|
support is not available.
|
|
|
|
.It Ic normalize_hostnames Xo
|
|
|
|
(boolean, default=no)
|
|
|
|
.Xc
|
2003-09-02 15:42:57 +00:00
|
|
|
Same as the
|
2004-03-24 10:25:24 +00:00
|
|
|
.Fl n
|
|
|
|
option to
|
|
|
|
.Nm amd .
|
|
|
|
If
|
|
|
|
.Dq yes ,
|
2005-07-28 13:03:19 +00:00
|
|
|
then the name referred to by
|
2004-03-24 10:25:24 +00:00
|
|
|
.Va ${rhost}
|
2005-06-16 20:21:03 +00:00
|
|
|
is normalized relative to the host database before being used.
|
|
|
|
The effect is
|
2004-03-24 10:25:24 +00:00
|
|
|
to translate aliases into
|
|
|
|
.Qq official
|
|
|
|
names.
|
|
|
|
.It Ic os Xo
|
|
|
|
(string, default to compiled in value)
|
|
|
|
.Xc
|
2003-09-02 15:42:57 +00:00
|
|
|
Same as the
|
2004-03-24 10:25:24 +00:00
|
|
|
.Fl O
|
|
|
|
option to
|
|
|
|
.Nm amd .
|
|
|
|
Allows you to override the compiled-in name of the operating
|
2005-06-16 20:21:03 +00:00
|
|
|
system.
|
|
|
|
Useful when the built-in name is not desired for backward
|
|
|
|
compatibility reasons.
|
|
|
|
For example, if the build in name is
|
1998-09-12 04:04:59 +00:00
|
|
|
.Dq sunos5 ,
|
|
|
|
you can override it to
|
|
|
|
.Dq sos5 ,
|
|
|
|
and use older maps which were written with the latter in mind.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic osver Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(string, default to compiled in value)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Same as the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Fl o
|
|
|
|
option to
|
|
|
|
.Nm amd .
|
|
|
|
Override the compiled-in version number of the operating
|
2005-06-16 20:21:03 +00:00
|
|
|
system.
|
|
|
|
Useful when the built in version is not desired for backward
|
|
|
|
compatibility reasons.
|
|
|
|
For example, if the build in version is
|
1998-09-12 04:04:59 +00:00
|
|
|
.Dq 2.5.1 ,
|
|
|
|
you can override it to
|
|
|
|
.Dq 5.5.1 ,
|
|
|
|
and use older maps that were written with the latter in mind.
|
2004-03-24 10:25:24 +00:00
|
|
|
.It Ic pid_file Xo (string, default= Ns Pa /dev/stdout )
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
2005-06-16 20:21:03 +00:00
|
|
|
Specify a file to store the process ID of the running daemon into.
|
|
|
|
If not
|
1998-09-12 04:04:59 +00:00
|
|
|
specified,
|
|
|
|
.Nm amd
|
2005-06-16 20:21:03 +00:00
|
|
|
will print its process id only the standard output.
|
|
|
|
Useful for killing
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm amd
|
2005-06-16 20:21:03 +00:00
|
|
|
after it had run.
|
|
|
|
Note that the PID of a running
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm amd
|
|
|
|
can also be retrieved via
|
|
|
|
.Nm amq Fl p .
|
|
|
|
This file is used only if the
|
|
|
|
.Ar print_pid
|
|
|
|
option is on.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic plock Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(boolean, default=yes)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Same as the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Fl S
|
|
|
|
option to
|
|
|
|
.Nm amd .
|
|
|
|
If
|
|
|
|
.Dq yes ,
|
|
|
|
lock the running executable pages of
|
|
|
|
.Nm amd
|
2005-06-16 20:21:03 +00:00
|
|
|
into memory.
|
|
|
|
To improve
|
2001-01-10 14:01:39 +00:00
|
|
|
.Nm amd Ns 's
|
1998-09-12 04:04:59 +00:00
|
|
|
performance, systems that support the
|
|
|
|
.Xr plock 3
|
|
|
|
call can lock the
|
|
|
|
.Nm amd
|
2005-06-16 20:21:03 +00:00
|
|
|
process into memory.
|
|
|
|
This way there is less chance it that the operating
|
1998-09-12 04:04:59 +00:00
|
|
|
system will schedule, page out, and swap the
|
|
|
|
.Nm amd
|
2005-06-16 20:21:03 +00:00
|
|
|
process as needed.
|
|
|
|
This improves
|
2001-01-10 14:01:39 +00:00
|
|
|
.Nm amd Ns 's
|
1998-09-12 04:04:59 +00:00
|
|
|
performance, at the cost of reserving the memory used by the
|
|
|
|
.Nm amd
|
|
|
|
process
|
2001-08-07 15:48:51 +00:00
|
|
|
(making it unavailable for other processes).
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic portmap_program Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(numeric, default=300019)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Specify an alternate Port-mapper RPC program number, other than the official
|
2005-06-16 20:21:03 +00:00
|
|
|
number.
|
|
|
|
This is useful when running multiple
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm amd
|
2005-06-16 20:21:03 +00:00
|
|
|
processes.
|
|
|
|
For example, you can run another
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm amd
|
|
|
|
in
|
|
|
|
.Dq test
|
|
|
|
mode, without affecting the primary
|
|
|
|
.Nm amd
|
2005-06-16 20:21:03 +00:00
|
|
|
process in any way.
|
|
|
|
For safety reasons, the alternate program numbers that
|
1998-08-23 22:07:21 +00:00
|
|
|
can be specified must be in the range 300019-300029, inclusive.
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm amq
|
1998-08-23 22:07:21 +00:00
|
|
|
has an option
|
1998-09-12 04:04:59 +00:00
|
|
|
.Fl P
|
|
|
|
which can be used to specify an alternate program number of an
|
|
|
|
.Nm amd
|
2005-06-16 20:21:03 +00:00
|
|
|
to contact.
|
|
|
|
In this way,
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm amq
|
|
|
|
can fully control any number of
|
|
|
|
.Nm amd
|
|
|
|
processes running on the same host.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic print_pid Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(boolean, default=no)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Same as the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Fl p
|
|
|
|
option to
|
|
|
|
.Nm amd .
|
|
|
|
If
|
|
|
|
.Dq yes ,
|
|
|
|
.Nm amd
|
|
|
|
will print its process ID upon starting.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic print_version Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(boolean, default=no)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Same as the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Fl v
|
|
|
|
option to
|
|
|
|
.Nm amd ,
|
|
|
|
but the version prints and
|
|
|
|
.Nm amd
|
2005-06-16 20:21:03 +00:00
|
|
|
continues to run.
|
|
|
|
If
|
1998-09-12 04:04:59 +00:00
|
|
|
.Dq yes ,
|
|
|
|
.Nm amd
|
|
|
|
will print its version information string, which includes some configuration
|
|
|
|
and compilation values.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic restart_mounts Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(boolean, default=no)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Same as the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Fl r
|
|
|
|
option to
|
|
|
|
.Nm amd .
|
|
|
|
If
|
|
|
|
.Dq yes ,
|
|
|
|
.Nm amd
|
1998-08-23 22:07:21 +00:00
|
|
|
will scan the mount table to determine which file systems are currently
|
2005-06-16 20:21:03 +00:00
|
|
|
mounted.
|
|
|
|
Whenever one of these would have been auto-mounted,
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm amd
|
1998-08-23 22:07:21 +00:00
|
|
|
inherits it.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic selectors_on_default Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(boolean, default=no)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-09-12 04:04:59 +00:00
|
|
|
If
|
|
|
|
.Dq yes ,
|
|
|
|
then the
|
|
|
|
.Pa /default
|
|
|
|
entry of maps will be looked for and process any selectors before setting
|
2005-06-16 20:21:03 +00:00
|
|
|
defaults for all other keys in that map.
|
|
|
|
Useful when you want to set
|
|
|
|
different options for a complete map based on some parameters.
|
|
|
|
For example,
|
1998-09-12 04:04:59 +00:00
|
|
|
you may want to better the
|
|
|
|
.Tn NFS
|
|
|
|
performance over slow slip-based networks as
|
|
|
|
follows:
|
|
|
|
.Pp
|
|
|
|
.Bd -literal
|
1998-08-23 22:07:21 +00:00
|
|
|
/defaults \\
|
|
|
|
wire==slip-net;opts:=intr,rsize=1024,wsize=1024 \\
|
|
|
|
wire!=slip-net;opts:=intr,rsize=8192,wsize=8192
|
1998-09-12 04:04:59 +00:00
|
|
|
.Ed
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic show_statfs_entries Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(boolean, default=no)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-09-12 04:04:59 +00:00
|
|
|
If
|
|
|
|
.Dq yes ,
|
|
|
|
then all maps which are browsable will also show the number of entries
|
2001-08-07 15:48:51 +00:00
|
|
|
(keys)
|
1998-09-12 04:04:59 +00:00
|
|
|
they have when
|
|
|
|
.Qq df
|
|
|
|
runs.
|
2001-01-10 14:01:39 +00:00
|
|
|
(This is accomplished by returning non-zero values to the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Xr statfs 2
|
2001-01-10 14:01:39 +00:00
|
|
|
system call.)
|
|
|
|
.It Ic unmount_on_exit Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(boolean, default=no)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-09-12 04:04:59 +00:00
|
|
|
If
|
|
|
|
.Dq yes ,
|
2005-06-16 20:21:03 +00:00
|
|
|
then
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm amd
|
2005-06-16 20:21:03 +00:00
|
|
|
will attempt to unmount all file systems which it knows about.
|
|
|
|
Normally
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm amd
|
2005-06-16 20:21:03 +00:00
|
|
|
leaves all
|
2001-08-07 15:48:51 +00:00
|
|
|
(esp.\&)
|
1998-09-12 04:04:59 +00:00
|
|
|
.Tn NFS
|
2005-06-16 20:21:03 +00:00
|
|
|
mounted file systems intact.
|
|
|
|
Note that
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm amd
|
|
|
|
does not know about file systems mounted before it starts up, unless the
|
1998-11-30 22:25:24 +00:00
|
|
|
.Ar restart_mounts
|
1998-09-12 04:04:59 +00:00
|
|
|
option or
|
|
|
|
.Fl r
|
1998-08-23 22:07:21 +00:00
|
|
|
flag are used.
|
1998-09-12 04:04:59 +00:00
|
|
|
.El
|
2001-01-10 14:01:39 +00:00
|
|
|
.Ss "Parameters applicable to regular map sections"
|
|
|
|
.Bl -tag -width 4n
|
|
|
|
.It Ic map_name Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(string, must be specified)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
1998-08-23 22:07:21 +00:00
|
|
|
Name of the map where the keys are located.
|
2001-01-10 14:01:39 +00:00
|
|
|
.It Ic tag Xo
|
2001-08-07 15:48:51 +00:00
|
|
|
(string, default no tag)
|
2001-01-10 14:01:39 +00:00
|
|
|
.Xc
|
2005-06-16 20:21:03 +00:00
|
|
|
Each map entry in the configuration file can be tagged.
|
|
|
|
If no tag is
|
1998-09-12 04:04:59 +00:00
|
|
|
specified, that map section will always be processed by
|
|
|
|
.Nm amd .
|
|
|
|
If it is specified, then
|
|
|
|
.Nm amd
|
|
|
|
will process the map if the
|
|
|
|
.Fl T
|
|
|
|
option was given to
|
|
|
|
.Nm amd ,
|
|
|
|
and the value given to that command-line option matches that in the map
|
2005-06-16 20:21:03 +00:00
|
|
|
section.
|
1998-09-12 04:04:59 +00:00
|
|
|
.El
|
|
|
|
.Sh EXAMPLES
|
2005-06-16 20:21:03 +00:00
|
|
|
Here is a real
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm amd
|
|
|
|
configuration I use daily.
|
|
|
|
.Bd -literal
|
1998-08-23 22:07:21 +00:00
|
|
|
# GLOBAL OPTIONS SECTION
|
|
|
|
[ global ]
|
|
|
|
normalize_hostnames = no
|
|
|
|
print_pid = no
|
|
|
|
restart_mounts = yes
|
|
|
|
auto_dir = /n
|
|
|
|
log_file = /var/log/amd
|
|
|
|
log_options = all
|
|
|
|
#debug_options = all
|
|
|
|
plock = no
|
|
|
|
selectors_on_default = yes
|
|
|
|
# config.guess picks up "sunos5" and I don't want to edit my maps yet
|
|
|
|
os = sos5
|
|
|
|
# if you print_version after setting up "os", it will show it.
|
|
|
|
print_version = no
|
|
|
|
map_type = file
|
|
|
|
search_path = /etc/amdmaps:/usr/lib/amd:/usr/local/AMD/lib
|
|
|
|
browsable_dirs = yes
|
|
|
|
|
|
|
|
# DEFINE AN AMD MOUNT POINT
|
|
|
|
[ /u ]
|
|
|
|
map_name = amd.u
|
1998-09-12 04:04:59 +00:00
|
|
|
|
|
|
|
[ /proj ]
|
1998-08-23 22:07:21 +00:00
|
|
|
map_name = amd.proj
|
1998-09-12 04:04:59 +00:00
|
|
|
|
|
|
|
[ /src ]
|
1998-08-23 22:07:21 +00:00
|
|
|
map_name = amd.src
|
1998-09-12 04:04:59 +00:00
|
|
|
|
|
|
|
[ /misc ]
|
1998-08-23 22:07:21 +00:00
|
|
|
map_name = amd.misc
|
1998-09-12 04:04:59 +00:00
|
|
|
|
|
|
|
[ /import ]
|
1998-08-23 22:07:21 +00:00
|
|
|
map_name = amd.import
|
1998-09-12 04:04:59 +00:00
|
|
|
|
|
|
|
[ /tftpboot/.amd ]
|
1998-08-23 22:07:21 +00:00
|
|
|
tag = tftpboot
|
|
|
|
map_name = amd.tftpboot
|
1998-09-12 04:04:59 +00:00
|
|
|
.Ed
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr amd 8 ,
|
2005-06-16 20:21:03 +00:00
|
|
|
.Xr amq 8
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm amd
|
|
|
|
utility first appeared in
|
|
|
|
.Bx 4.4 .
|
1998-09-12 04:04:59 +00:00
|
|
|
.Sh AUTHORS
|
|
|
|
.An Erez Zadok Aq ezk@cs.columbia.edu ,
|
|
|
|
Department of Computer Science, Columbia University, New York, USA.
|
|
|
|
.Pp
|
|
|
|
.An Jan-Simon Pendry Aq jsp@doc.ic.ac.uk ,
|
|
|
|
Department of Computing, Imperial College, London, UK.
|
|
|
|
.Pp
|
2005-06-16 20:21:03 +00:00
|
|
|
Other authors and contributers to am-utils are listed in the
|
2000-05-09 14:02:06 +00:00
|
|
|
.Pa AUTHORS
|
1998-08-23 22:07:21 +00:00
|
|
|
file distributed with am-utils.
|