xref: /netbsd/games/dm/dm.conf.5 (revision c4a72b64)
1.\"	$NetBSD: dm.conf.5,v 1.7 2002/09/26 18:32:00 wiz Exp $
2.\"
3.\" Copyright (c) 1988, 1991, 1993
4.\"	The Regents of the University of California.  All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\" 3. All advertising materials mentioning features or use of this software
15.\"    must display the following acknowledgement:
16.\"	This product includes software developed by the University of
17.\"	California, Berkeley and its contributors.
18.\" 4. Neither the name of the University nor the names of its contributors
19.\"    may be used to endorse or promote products derived from this software
20.\"    without specific prior written permission.
21.\"
22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE.
33.\"
34.\"     @(#)dm.conf.5	8.1 (Berkeley) 5/31/93
35.\"
36.Dd May 31, 1993
37.Dt DM.CONF 5
38.Os
39.Sh NAME
40.Nm dm.conf
41.Nd dungeon master configuration file
42.Sh DESCRIPTION
43The
44.Nm
45file is the configuration file for the
46.Xr dm 8
47program.
48It consists of lines beginning with one of three keywords,
49.Em badtty ,
50.Em game ,
51and
52.Em time .
53All other lines are ignored.
54.Pp
55Any tty listed after the keyword
56.Em badtty
57may not have games played on it.
58Entries consist of two white-space separated fields: the string
59.Em badtty
60and the ttyname as returned by
61.Xr ttyname 3 .
62For example, to keep the uucp dialout,
63.Dq tty19 ,
64from being used for games, the entry would be:
65.Bd -literal -offset indent
66badtty	/dev/tty19
67.Ed
68.Pp
69Any day/hour combination listed after the keyword
70.Em time
71will disallow games during those hours.
72Entries consist of four white-space separated fields: the string
73.Em time ,
74the unabbreviated day of the week and the beginning and ending time
75of a period of the day when games may not be played.
76The time fields are in a 0 based, 24-hour clock.
77For example, the following entry allows games playing before 8AM
78and after 5PM on Mondays:
79.Bd -literal -offset indent
80time	Monday	8	17
81.Ed
82.Pp
83Any game listed after the keyword
84.Em game
85will set parameters for a specific game.
86Entries consist of five white-space separated fields: the keyword
87.Em game ,
88the name of a game, the highest system load average at which the
89game may be played, the maximum users allowed if the game is to be
90played, and the priority at which the game is to be run.
91Any of these fields may start with a non-numeric character, resulting
92in no game limitation or priority based on that field.
93.Pp
94The game
95.Em default
96controls the settings for any game not otherwise listed, and must be the last
97.Em game
98entry in the file.
99Priorities may not be negative.
100For example, the following entries limits the game
101.Dq hack
102to running only when the system has 10 or less users and a load average of 5
103or less; all other games may be run any time the system has 15 or less users.
104.Bd -literal -offset indent
105game	hack		5	10	*
106game	default		*	15	*
107.Ed
108.Sh FILES
109.Bl -tag -width /etc/dm.conf -compact
110.It Pa /etc/dm.conf
111The
112.Xr dm 8
113configuration file.
114.El
115.Sh SEE ALSO
116.Xr setpriority 2 ,
117.Xr ttyname 3 ,
118.Xr dm 8
119