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