xref: /netbsd/usr.sbin/autofs/autounmountd.8 (revision 34c23d0a)
1*34c23d0aStkusumi.\" $NetBSD: autounmountd.8,v 1.4 2019/11/21 15:24:17 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.\"
3759a9e119Schristos.Dd November 25, 2017
3859a9e119Schristos.Dt AUTOUNMOUNTD 8
3959a9e119Schristos.Os
4059a9e119Schristos.Sh NAME
4159a9e119Schristos.Nm autounmountd
4259a9e119Schristos.Nd daemon unmounting automounted file systems
4359a9e119Schristos.Sh SYNOPSIS
4459a9e119Schristos.Nm
4559a9e119Schristos.Op Fl r Ar time
4659a9e119Schristos.Op Fl t Ar time
47e1f1042cSwiz.Op Fl dv
4859a9e119Schristos.Sh DESCRIPTION
4959a9e119SchristosThe
5059a9e119Schristos.Nm
5159a9e119Schristosdaemon is responsible for unmounting file systems mounted by
5259a9e119Schristos.Xr automountd 8 .
5359a9e119SchristosOn startup,
5459a9e119Schristos.Nm
5559a9e119Schristosretrieves a list of file systems that have the
5659a9e119Schristos.Li automounted
5759a9e119Schristosmount option set.
5859a9e119SchristosThe list is updated every time a file system is mounted or unmounted.
5959a9e119SchristosAfter a specified time passes,
6059a9e119Schristos.Nm
6159a9e119Schristosattempts to unmount a file system, retrying after some time if necessary.
6259a9e119Schristos.Pp
6359a9e119SchristosThese options are available:
6459a9e119Schristos.Bl -tag -width ".Fl v"
6559a9e119Schristos.It Fl d
6659a9e119SchristosDebug mode: increase verbosity and do not daemonize.
6759a9e119Schristos.It Fl r
6859a9e119SchristosNumber of seconds to wait before trying to unmount an expired file system
6959a9e119Schristosafter a previous attempt failed, possibly due to file system being busy.
7059a9e119SchristosThe default value is 600, or ten minutes.
7159a9e119Schristos.It Fl t
7259a9e119SchristosNumber of seconds to wait before trying to unmount a file system.
7359a9e119SchristosThe default value is 600, or ten minutes.
7459a9e119Schristos.It Fl v
7559a9e119SchristosIncrease verbosity.
7659a9e119Schristos.El
7759a9e119Schristos.Sh EXIT STATUS
7859a9e119Schristos.Ex -std
7959a9e119Schristos.Sh SEE ALSO
8059a9e119Schristos.Xr auto_master 5 ,
81e1f1042cSwiz.Xr autofs 5 ,
8259a9e119Schristos.Xr automount 8 ,
8359a9e119Schristos.Xr automountd 8
8459a9e119Schristos.Sh HISTORY
8559a9e119SchristosThe
8659a9e119Schristos.Nm
8759a9e119Schristosdaemon appeared in
8859a9e119Schristos.Fx 10.1 .
8959a9e119SchristosThe
9059a9e119Schristos.Nm
9159a9e119Schristosdaemon appeared in
9259a9e119Schristos.Dx 4.5 .
9359a9e119SchristosThe
9459a9e119Schristos.Nm
9559a9e119Schristoscommand appeared in
9659a9e119Schristos.Nx 9.0 .
9759a9e119Schristos.Sh AUTHORS
9823c8355aSuwe.An -nosplit
9959a9e119SchristosThe
10059a9e119Schristos.Nm
10159a9e119Schristoswas developed by
10259a9e119Schristos.An Edward Tomasz Napierala Aq Mt trasz@FreeBSD.org
103e1f1042cSwizunder sponsorship from the
104e1f1042cSwiz.Fx
105e1f1042cSwizFoundation.
10659a9e119Schristos.Pp
10759a9e119Schristos.Nm
10859a9e119Schristoswas ported to
10959a9e119Schristos.Dx
11059a9e119Schristosand
11159a9e119Schristos.Nx
11259a9e119Schristosby
113*34c23d0aStkusumi.An Tomohiro Kusumi Aq Mt tkusumi@netbsd.org .
114