]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - dm/dm.conf.5
fix bad mdoc reference & clean up a little
[bsdgames-darwin.git] / dm / dm.conf.5
1 .\" $NetBSD: dm.conf.5,v 1.4 1998/04/28 18:34:12 fair 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 BSD 4.2
39 .Sh NAME
40 .Nm dm.conf
41 .Nd dungeon master configuration file
42 .Sh DESCRIPTION
43 The
44 .Xr dm.conf
45 file
46 is the configuration file for the
47 .Xr dm 8
48 program.
49 It consists of lines beginning with one of three keywords,
50 .Em badtty ,
51 .Em game ,
52 and
53 .Em time .
54 All other lines are ignored.
55 .Pp
56 Any tty listed after the keyword
57 .Em badtty
58 may not have games played on it.
59 Entries consist of two white-space separated fields: the string
60 .Em badtty
61 and the ttyname as returned by
62 .Xr ttyname 3 .
63 For example,
64 to keep the uucp dialout,
65 .Dq tty19 ,
66 from being used for games, the entry would be:
67 .Bd -literal -offset indent
68 badtty /dev/tty19
69 .Ed
70 .Pp
71 Any day/hour combination listed after the keyword
72 .Em time
73 will disallow games during those hours.
74 Entries consist of four white-space separated fields: the string
75 .Em time ,
76 the unabbreviated day of the week and the beginning and ending time
77 of a period of the day when games may not be played.
78 The time fields are in a 0 based, 24-hour clock.
79 For example, the following entry allows games playing before 8AM
80 and after 5PM on Mondays:
81 .Bd -literal -offset indent
82 time Monday 8 17
83 .Ed
84 .Pp
85 Any game listed after the keyword
86 .Em game
87 will set parameters for a specific game.
88 Entries consist of five white-space separated fields: the keyword
89 .Em game ,
90 the name of a game, the highest system load average at which the
91 game may be played, the maximum users allowed if the game is to be
92 played, and the priority at which the game is to be run.
93 Any of these fields may start with a non-numeric character, resulting
94 in no game limitation or priority based on that field.
95 .Pp
96 The game
97 .Em default
98 controls the settings for
99 any game not otherwise listed, and must be the last
100 .Em game
101 entry in the file.
102 Priorities may not be negative.
103 For example, the following entries
104 limits the game
105 .Dq hack
106 to running only when the system has 10 or less
107 users and a load average of 5 or less; all other games may be run any time
108 the system has 15 or less users.
109 .Bd -literal -offset indent
110 game hack 5 10 *
111 game default * 15 *
112 .Ed
113 .Sh FILES
114 .Bl -tag -width /etc/dm.conf -compact
115 .It Pa /etc/dm.conf
116 The
117 .Xr dm 8
118 configuration file.
119 .El
120 .Sh SEE ALSO
121 .Xr setpriority 2 ,
122 .Xr ttyname 3 ,
123 .Xr dm 8