.\" Copyright (c) 2003 Michael Reifenberger (Michael@Reifenberger.com) .\" All rights reserved. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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. .\" .\" $FreeBSD: src/usr.sbin/gstat/gstat.8,v 1.2 2003/05/31 18:19:50 ru Exp $ .\" .Dd September 23, 2003 .Dt GSTOPD 8 .Os .Sh NAME .Nm gstopd .Nd stop disks in the case of inactivity using GEOM statistics .Sh SYNOPSIS .Nm .Op Fl I Ar interval diskX ... .Sh DESCRIPTION The .Nm daemon can be used to stop disks after an certain amount of inactivity using .Xr geom 4 statisics. Messages get logged via .Xr syslog 3 using the local0.info priority. .Pp The options are as follows: .Bl -tag -width indent .It Fl I Ar interval The amount of inactivity in seconds of a disk after which the disk should get stopped Adding a suffix of .Cm m , h , or .Cm s (the default) indicates that the update interval is specified in minutes, hours, or seconds, respectively. .Pp .It diskX Specifies one or more disks which should get monitored and stoped if appropriate. .El .Sh SEE ALSO .Xr gstat 8 .Xr geom 4 .Sh HISTORY A .Nm utility appeared in .Fx 5.2 . .Sh BUGS The .Nm daemon is currently only able to stop disks which are connected to .Xr CAM 4 subsystem. .Pp Since it stops disks using the external .Xr camcontrol 8 tool it will be difficult to get the disk with the root filesystem on it stopped.