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