xref: /netbsd/usr.sbin/autofs/automountd.8 (revision ee16405b)
1*ee16405bStkusumi.\" $NetBSD: automountd.8,v 1.5 2019/11/25 16:57:09 tkusumi Exp $
2e1f1042cSwiz.\"
359a9e119Schristos.\" Copyright (c) 2017 The NetBSD Foundation, Inc.
459a9e119Schristos.\" Copyright (c) 2016 The DragonFly Project
559a9e119Schristos.\" Copyright (c) 2014 The FreeBSD Foundation
659a9e119Schristos.\" All rights reserved.
759a9e119Schristos.\"
859a9e119Schristos.\" This code is derived from software contributed to The NetBSD Foundation
959a9e119Schristos.\" by Tomohiro Kusumi.
1059a9e119Schristos.\"
1159a9e119Schristos.\" This software was developed by Edward Tomasz Napierala under sponsorship
1259a9e119Schristos.\" from the FreeBSD Foundation.
1359a9e119Schristos.\"
1459a9e119Schristos.\" Redistribution and use in source and binary forms, with or without
1559a9e119Schristos.\" modification, are permitted provided that the following conditions
1659a9e119Schristos.\" are met:
1759a9e119Schristos.\" 1. Redistributions of source code must retain the above copyright
1859a9e119Schristos.\"    notice, this list of conditions and the following disclaimer.
1959a9e119Schristos.\" 2. Redistributions in binary form must reproduce the above copyright
2059a9e119Schristos.\"    notice, this list of conditions and the following disclaimer in the
2159a9e119Schristos.\"    documentation and/or other materials provided with the distribution.
2259a9e119Schristos.\"
2359a9e119Schristos.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
2459a9e119Schristos.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2559a9e119Schristos.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2659a9e119Schristos.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
2759a9e119Schristos.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2859a9e119Schristos.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2959a9e119Schristos.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
3059a9e119Schristos.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3159a9e119Schristos.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3259a9e119Schristos.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3359a9e119Schristos.\" SUCH DAMAGE.
3459a9e119Schristos.\"
3559a9e119Schristos.\" $FreeBSD$
3659a9e119Schristos.\"
37*ee16405bStkusumi.Dd November 26, 2019
3859a9e119Schristos.Dt AUTOMOUNTD 8
3959a9e119Schristos.Os
4059a9e119Schristos.Sh NAME
4159a9e119Schristos.Nm automountd
4259a9e119Schristos.Nd daemon handling autofs mount requests
4359a9e119Schristos.Sh SYNOPSIS
4459a9e119Schristos.Nm
45e1f1042cSwiz.Op Fl div
4659a9e119Schristos.Op Fl D Ar name=value
4759a9e119Schristos.Op Fl m Ar maxproc
4859a9e119Schristos.Op Fl o Ar options
4959a9e119Schristos.Sh DESCRIPTION
5059a9e119SchristosThe
5159a9e119Schristos.Nm
5259a9e119Schristosdaemon is responsible for handling
5359a9e119Schristos.Xr autofs 5
5459a9e119Schristosmount requests, parsing maps,
5559a9e119Schristosand mounting file systems they specify.
5659a9e119SchristosOn startup,
5759a9e119Schristos.Nm
5859a9e119Schristosforks into background and waits for kernel requests.
5959a9e119SchristosWhen a request is received,
6059a9e119Schristos.Nm
6159a9e119Schristosforks a child process.
6259a9e119SchristosThe child process parses the appropriate map and mounts file systems accordingly.
6359a9e119SchristosThen it signals the kernel to release blocked processes that were waiting
6459a9e119Schristosfor the mount.
6559a9e119Schristos.Bl -tag -width ".Fl v"
6659a9e119Schristos.It Fl D
6759a9e119SchristosDefine a variable.
68e1f1042cSwiz.It Fl d
69e1f1042cSwizDebug mode: increase verbosity and do not daemonize.
7059a9e119Schristos.It Fl i
7159a9e119SchristosFor indirect mounts, only create subdirectories if there are no wildcard
7259a9e119Schristosentries.
7359a9e119SchristosWithout
7459a9e119Schristos.Fl i ,
7559a9e119Schristos.Nm
7659a9e119Schristoscreates all the subdirectories it can.
7759a9e119SchristosUsers may not realize that the wildcard map entry makes it possible to access
7859a9e119Schristosdirectories that have not yet been created.
7959a9e119Schristos.It Fl m Ar maxproc
8059a9e119SchristosLimit the number of forked
8159a9e119Schristos.Nm
8259a9e119Schristosprocesses, and thus the number of mount requests being handled in parallel.
8359a9e119SchristosThe default is 30.
8459a9e119Schristos.It Fl o Ar options
8559a9e119SchristosSpecify mount options.
8659a9e119SchristosOptions specified here will be overridden by options entered in maps or
8759a9e119Schristos.Xr auto_master 5 .
88*ee16405bStkusumi.It Fl T
89*ee16405bStkusumiIncrease verbosity.
90*ee16405bStkusumiFor compatibility with other implementations, such as OS X.
9159a9e119Schristos.It Fl v
9259a9e119SchristosIncrease verbosity.
9359a9e119Schristos.El
9459a9e119Schristos.Sh EXIT STATUS
9559a9e119Schristos.Ex -std
9659a9e119Schristos.Sh SEE ALSO
9759a9e119Schristos.Xr auto_master 5 ,
98e1f1042cSwiz.Xr autofs 5 ,
9959a9e119Schristos.Xr automount 8 ,
10059a9e119Schristos.Xr autounmountd 8
10159a9e119Schristos.Sh HISTORY
10259a9e119SchristosThe
10359a9e119Schristos.Nm
10459a9e119Schristosdaemon appeared in
10559a9e119Schristos.Fx 10.1 .
10659a9e119SchristosThe
10759a9e119Schristos.Nm
10859a9e119Schristosdaemon appeared in
10959a9e119Schristos.Dx 4.5 .
11059a9e119SchristosThe
11159a9e119Schristos.Nm
11259a9e119Schristoscommand appeared in
11359a9e119Schristos.Nx 9.0 .
11459a9e119Schristos.Sh AUTHORS
11523c8355aSuwe.An -nosplit
11659a9e119SchristosThe
11759a9e119Schristos.Nm
11859a9e119Schristoswas developed by
11959a9e119Schristos.An Edward Tomasz Napierala Aq Mt trasz@FreeBSD.org
120e1f1042cSwizunder sponsorship from the
121e1f1042cSwiz.Fx
122e1f1042cSwizFoundation.
12359a9e119Schristos.Pp
12459a9e119Schristos.Nm
12559a9e119Schristoswas ported to
12659a9e119Schristos.Dx
12759a9e119Schristosand
12859a9e119Schristos.Nx
12959a9e119Schristosby
13034c23d0aStkusumi.An Tomohiro Kusumi Aq Mt tkusumi@netbsd.org .
131