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