date and time created 88/06/01 18:32:07 by bostic
[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.\"
0901618c
KB
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that this notice is preserved and that due credit is given
6.\" to the University of California at Berkeley. The name of the University
7.\" may not be used to endorse or promote products derived from this
8.\" software without specific prior written permission. This software
9.\" is provided ``as is'' without express or implied warranty.
10.\"
11.\" @(#)dm.conf.5 5.3 (Berkeley) %G%
7bfb82ad
KB
12.\"
13.TH DM.CONFIG 5 ""
14.UC 5
15.SH NAME
16dm.config \- dm configuration file
17.SH DESCRIPTION
b3b5a8a7
KB
18\fIDm.config\fP is the configuration file for the \fIdm\fP(8) program.
19It consists of lines beginning with one of three keywords, ``badtty'',
20``game'', and ``time''. All other lines are ignored.
7bfb82ad 21.PP
b3b5a8a7
KB
22Any tty listed after the keyword ``badtty'' may not have games played on
23it. Entries consist of two white-space separated fields: the string
24``badtty'' and the ttyname as returned by \fIttyname\fP(3). For example,
25to keep the uucp dialout, ``tty19'', from being used for games, the
26entry would be:
7bfb82ad 27.PP
b3b5a8a7
KB
28.RS
29 badtty /dev/tty19
30.RE
7bfb82ad 31.PP
b3b5a8a7
KB
32Any day/hour combination listed after the keyword ``time'' will disallow
33games during those hours. Entries consist of four white-space separated
34fields: the string ``time'', the unabbreviated day of the week and the
35beginning and ending time of a period of the day when games may not be
36played. The time fields are in a 0 based, 24-hour clock. For example,
37the following entry allows games playing before 8AM and after 5PM on
38Mondays.
39.PP
40.RS
41 time Monday 8 17
42.RE
43.PP
44Any game listed after the keyword ``game'' will set parameters for a specific
45game. Entries consist of five white-space separated fields: the keyword
46``game'', the name of a game, the highest system load average at which the
47game may be played, the maximum users allowed if the game is to be played,
48and the priority at which the game is to be run. Any of these fields may
49start with a non-numeric character, resulting in no game limitation or
50priority based on that field. The game "default" controls the settings for
51any game not otherwise listed, and must be the last ``game'' entry in the
52file. Priorities may not be negative. For example, the following entries
53limits the game ``hack'' to running only when the system has 10 or less
54users and a load average of 5 or less; all other games may be run any time
55the system has 15 or less users.
56.PP
57.RS
58 game hack 5 10 *
59 game default * 15 *
60.RE
7bfb82ad
KB
61.SH "SEE ALSO"
62setpriority(2), ttyname(3), dm(8)