2003-08-07 13:36:50 +04:00
|
|
|
.\" $NetBSD: dm.conf.5,v 1.8 2003/08/07 09:37:11 agc Exp $
|
1995-03-21 18:03:38 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1988, 1991, 1993
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
1993-03-21 12:45:37 +03:00
|
|
|
.\"
|
|
|
|
.\" 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.
|
2003-08-07 13:36:50 +04:00
|
|
|
.\" 3. Neither the name of the University nor the names of its contributors
|
1993-03-21 12:45:37 +03:00
|
|
|
.\" 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.
|
|
|
|
.\"
|
1995-03-21 18:03:38 +03:00
|
|
|
.\" @(#)dm.conf.5 8.1 (Berkeley) 5/31/93
|
1993-03-21 12:45:37 +03:00
|
|
|
.\"
|
1995-03-21 18:03:38 +03:00
|
|
|
.Dd May 31, 1993
|
1993-03-21 12:45:37 +03:00
|
|
|
.Dt DM.CONF 5
|
1999-03-22 21:43:46 +03:00
|
|
|
.Os
|
1993-03-21 12:45:37 +03:00
|
|
|
.Sh NAME
|
|
|
|
.Nm dm.conf
|
1998-04-28 22:34:12 +04:00
|
|
|
.Nd dungeon master configuration file
|
1993-03-21 12:45:37 +03:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
1998-04-29 22:16:01 +04:00
|
|
|
.Nm
|
|
|
|
file is the configuration file for the
|
1998-04-28 22:34:12 +04:00
|
|
|
.Xr dm 8
|
1993-03-21 12:45:37 +03:00
|
|
|
program.
|
1998-04-28 22:34:12 +04:00
|
|
|
It consists of lines beginning with one of three keywords,
|
|
|
|
.Em badtty ,
|
|
|
|
.Em game ,
|
|
|
|
and
|
|
|
|
.Em time .
|
|
|
|
All other lines are ignored.
|
1993-03-21 12:45:37 +03:00
|
|
|
.Pp
|
1998-04-28 22:34:12 +04:00
|
|
|
Any tty listed after the keyword
|
|
|
|
.Em badtty
|
|
|
|
may not have games played on it.
|
1993-03-21 12:45:37 +03:00
|
|
|
Entries consist of two white-space separated fields: the string
|
1998-04-28 22:34:12 +04:00
|
|
|
.Em badtty
|
|
|
|
and the ttyname as returned by
|
1993-03-21 12:45:37 +03:00
|
|
|
.Xr ttyname 3 .
|
2002-09-26 22:31:58 +04:00
|
|
|
For example, to keep the uucp dialout,
|
1998-04-28 22:34:12 +04:00
|
|
|
.Dq tty19 ,
|
|
|
|
from being used for games, the entry would be:
|
1993-03-21 12:45:37 +03:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
badtty /dev/tty19
|
|
|
|
.Ed
|
|
|
|
.Pp
|
1998-04-28 22:34:12 +04:00
|
|
|
Any day/hour combination listed after the keyword
|
|
|
|
.Em time
|
|
|
|
will disallow games during those hours.
|
|
|
|
Entries consist of four white-space separated fields: the string
|
|
|
|
.Em time ,
|
|
|
|
the unabbreviated day of the week and the beginning and ending time
|
|
|
|
of a period of the day when games may not be played.
|
|
|
|
The time fields are in a 0 based, 24-hour clock.
|
|
|
|
For example, the following entry allows games playing before 8AM
|
|
|
|
and after 5PM on Mondays:
|
1993-03-21 12:45:37 +03:00
|
|
|
.Bd -literal -offset indent
|
1998-04-28 22:34:12 +04:00
|
|
|
time Monday 8 17
|
1993-03-21 12:45:37 +03:00
|
|
|
.Ed
|
|
|
|
.Pp
|
1998-04-28 22:34:12 +04:00
|
|
|
Any game listed after the keyword
|
|
|
|
.Em game
|
|
|
|
will set parameters for a specific game.
|
|
|
|
Entries consist of five white-space separated fields: the keyword
|
|
|
|
.Em game ,
|
|
|
|
the name of a game, the highest system load average at which the
|
|
|
|
game may be played, the maximum users allowed if the game is to be
|
|
|
|
played, and the priority at which the game is to be run.
|
|
|
|
Any of these fields may start with a non-numeric character, resulting
|
|
|
|
in no game limitation or priority based on that field.
|
|
|
|
.Pp
|
|
|
|
The game
|
|
|
|
.Em default
|
2002-09-26 22:31:58 +04:00
|
|
|
controls the settings for any game not otherwise listed, and must be the last
|
1998-04-28 22:34:12 +04:00
|
|
|
.Em game
|
|
|
|
entry in the file.
|
|
|
|
Priorities may not be negative.
|
2002-09-26 22:31:58 +04:00
|
|
|
For example, the following entries limits the game
|
1998-04-28 22:34:12 +04:00
|
|
|
.Dq hack
|
2002-09-26 22:31:58 +04:00
|
|
|
to running only when the system has 10 or less users and a load average of 5
|
|
|
|
or less; all other games may be run any time the system has 15 or less users.
|
1993-03-21 12:45:37 +03:00
|
|
|
.Bd -literal -offset indent
|
1998-04-28 22:34:12 +04:00
|
|
|
game hack 5 10 *
|
|
|
|
game default * 15 *
|
1993-03-21 12:45:37 +03:00
|
|
|
.Ed
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /etc/dm.conf -compact
|
|
|
|
.It Pa /etc/dm.conf
|
|
|
|
The
|
1998-04-28 22:34:12 +04:00
|
|
|
.Xr dm 8
|
1993-03-21 12:45:37 +03:00
|
|
|
configuration file.
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr setpriority 2 ,
|
|
|
|
.Xr ttyname 3 ,
|
|
|
|
.Xr dm 8
|