Commit | Line | Data |
---|---|---|
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 | |
11 | dm.config \- dm configuration file | |
12 | .SH DESCRIPTION | |
b3b5a8a7 KB |
13 | \fIDm.config\fP is the configuration file for the \fIdm\fP(8) program. |
14 | It consists of lines beginning with one of three keywords, ``badtty'', | |
15 | ``game'', and ``time''. All other lines are ignored. | |
7bfb82ad | 16 | .PP |
b3b5a8a7 KB |
17 | Any tty listed after the keyword ``badtty'' may not have games played on |
18 | it. Entries consist of two white-space separated fields: the string | |
19 | ``badtty'' and the ttyname as returned by \fIttyname\fP(3). For example, | |
20 | to keep the uucp dialout, ``tty19'', from being used for games, the | |
21 | entry would be: | |
7bfb82ad | 22 | .PP |
b3b5a8a7 KB |
23 | .RS |
24 | badtty /dev/tty19 | |
25 | .RE | |
7bfb82ad | 26 | .PP |
b3b5a8a7 KB |
27 | Any day/hour combination listed after the keyword ``time'' will disallow |
28 | games during those hours. Entries consist of four white-space separated | |
29 | fields: the string ``time'', the unabbreviated day of the week and the | |
30 | beginning and ending time of a period of the day when games may not be | |
31 | played. The time fields are in a 0 based, 24-hour clock. For example, | |
32 | the following entry allows games playing before 8AM and after 5PM on | |
33 | Mondays. | |
34 | .PP | |
35 | .RS | |
36 | time Monday 8 17 | |
37 | .RE | |
38 | .PP | |
39 | Any game listed after the keyword ``game'' will set parameters for a specific | |
40 | game. 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 | |
42 | game may be played, the maximum users allowed if the game is to be played, | |
43 | and the priority at which the game is to be run. Any of these fields may | |
44 | start with a non-numeric character, resulting in no game limitation or | |
45 | priority based on that field. The game "default" controls the settings for | |
46 | any game not otherwise listed, and must be the last ``game'' entry in the | |
47 | file. Priorities may not be negative. For example, the following entries | |
48 | limits the game ``hack'' to running only when the system has 10 or less | |
49 | users and a load average of 5 or less; all other games may be run any time | |
50 | the 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" |
57 | setpriority(2), ttyname(3), dm(8) |