new copyright notice
[unix-history] / usr / src / games / dm / dm.conf.5
CommitLineData
0901618c
KB
1.\" Copyright (c) 1988 Regents of the University of California.
2.\" All rights reserved.
7bfb82ad 3.\"
91cff1e1 4.\" %sccs.include.redist.man%
0901618c 5.\"
91cff1e1 6.\" @(#)dm.conf.5 5.5 (Berkeley) %G%
7bfb82ad
KB
7.\"
8.TH DM.CONFIG 5 ""
9.UC 5
10.SH NAME
11dm.config \- dm configuration file
12.SH DESCRIPTION
b3b5a8a7
KB
13\fIDm.config\fP is the configuration file for the \fIdm\fP(8) program.
14It consists of lines beginning with one of three keywords, ``badtty'',
15``game'', and ``time''. All other lines are ignored.
7bfb82ad 16.PP
b3b5a8a7
KB
17Any tty listed after the keyword ``badtty'' may not have games played on
18it. Entries consist of two white-space separated fields: the string
19``badtty'' and the ttyname as returned by \fIttyname\fP(3). For example,
20to keep the uucp dialout, ``tty19'', from being used for games, the
21entry would be:
7bfb82ad 22.PP
b3b5a8a7
KB
23.RS
24 badtty /dev/tty19
25.RE
7bfb82ad 26.PP
b3b5a8a7
KB
27Any day/hour combination listed after the keyword ``time'' will disallow
28games during those hours. Entries consist of four white-space separated
29fields: the string ``time'', the unabbreviated day of the week and the
30beginning and ending time of a period of the day when games may not be
31played. The time fields are in a 0 based, 24-hour clock. For example,
32the following entry allows games playing before 8AM and after 5PM on
33Mondays.
34.PP
35.RS
36 time Monday 8 17
37.RE
38.PP
39Any game listed after the keyword ``game'' will set parameters for a specific
40game. Entries consist of five white-space separated fields: the keyword
41``game'', the name of a game, the highest system load average at which the
42game may be played, the maximum users allowed if the game is to be played,
43and the priority at which the game is to be run. Any of these fields may
44start with a non-numeric character, resulting in no game limitation or
45priority based on that field. The game "default" controls the settings for
46any game not otherwise listed, and must be the last ``game'' entry in the
47file. Priorities may not be negative. For example, the following entries
48limits the game ``hack'' to running only when the system has 10 or less
49users and a load average of 5 or less; all other games may be run any time
50the system has 15 or less users.
51.PP
52.RS
53 game hack 5 10 *
54 game default * 15 *
55.RE
7bfb82ad
KB
56.SH "SEE ALSO"
57setpriority(2), ttyname(3), dm(8)