xref: /netbsd/games/dm/dm.conf.5 (revision bf9ec67e)
1.\"	$NetBSD: dm.conf.5,v 1.6 1999/03/22 18:49:11 garbled 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,
63to keep the uucp dialout,
64.Dq tty19 ,
65from being used for games, the entry would be:
66.Bd -literal -offset indent
67badtty	/dev/tty19
68.Ed
69.Pp
70Any day/hour combination listed after the keyword
71.Em time
72will disallow games during those hours.
73Entries consist of four white-space separated fields: the string
74.Em time ,
75the unabbreviated day of the week and the beginning and ending time
76of a period of the day when games may not be played.
77The time fields are in a 0 based, 24-hour clock.
78For example, the following entry allows games playing before 8AM
79and after 5PM on Mondays:
80.Bd -literal -offset indent
81time	Monday	8	17
82.Ed
83.Pp
84Any game listed after the keyword
85.Em game
86will set parameters for a specific game.
87Entries consist of five white-space separated fields: the keyword
88.Em game ,
89the name of a game, the highest system load average at which the
90game may be played, the maximum users allowed if the game is to be
91played, and the priority at which the game is to be run.
92Any of these fields may start with a non-numeric character, resulting
93in no game limitation or priority based on that field.
94.Pp
95The game
96.Em default
97controls the settings for
98any game not otherwise listed, and must be the last
99.Em game
100entry in the file.
101Priorities may not be negative.
102For example, the following entries
103limits the game
104.Dq hack
105to running only when the system has 10 or less
106users and a load average of 5 or less; all other games may be run any time
107the system has 15 or less users.
108.Bd -literal -offset indent
109game	hack		5	10	*
110game	default		*	15	*
111.Ed
112.Sh FILES
113.Bl -tag -width /etc/dm.conf -compact
114.It Pa /etc/dm.conf
115The
116.Xr dm 8
117configuration file.
118.El
119.Sh SEE ALSO
120.Xr setpriority 2 ,
121.Xr ttyname 3 ,
122.Xr dm 8
123