xref: /csrg-svn/games/dm/dm.conf.5 (revision 60782)
1*60782Sbostic.\" Copyright (c) 1988, 1991, 1993
2*60782Sbostic.\"	The Regents of the University of California.  All rights reserved.
332369Sbostic.\"
443560Strent.\" %sccs.include.redist.man%
532369Sbostic.\"
6*60782Sbostic.\"     @(#)dm.conf.5	8.1 (Berkeley) 05/31/93
733791Sbostic.\"
849640Scael.Dd
949640Scael.Dt DM.CONF 5
1049640Scael.Os BSD 4.2
1149640Scael.Sh NAME
1249640Scael.Nm dm.conf
1349640Scael.Nd \&dm configuration file
1449640Scael.Sh DESCRIPTION
1549640ScaelThe
1649640Scael.Xr dm.conf
1749640Scaelfile
1844285Sbosticis the configuration file for the
1949640Scael.Xr \&dm 8
2044285Sbosticprogram.
2132370SbosticIt consists of lines beginning with one of three keywords, ``badtty'',
2232370Sbostic``game'', and ``time''.  All other lines are ignored.
2349640Scael.Pp
2432370SbosticAny tty listed after the keyword ``badtty'' may not have games played on
2549640Scaelit.
2649640ScaelEntries consist of two white-space separated fields: the string
2749640Scael``badtty'' and the ttyname as returned by
2849640Scael.Xr ttyname 3 .
2949640ScaelFor example,
3032370Sbosticto keep the uucp dialout, ``tty19'', from being used for games, the
3132370Sbosticentry would be:
3249640Scael.Bd -literal -offset indent
3344285Sbosticbadtty	/dev/tty19
3449640Scael.Ed
3549640Scael.Pp
3632370SbosticAny day/hour combination listed after the keyword ``time'' will disallow
3732370Sbosticgames during those hours.  Entries consist of four white-space separated
3832370Sbosticfields: the string ``time'', the unabbreviated day of the week and the
3932370Sbosticbeginning and ending time of a period of the day when games may not be
4032370Sbosticplayed.  The time fields are in a 0 based, 24-hour clock.  For example,
4132370Sbosticthe following entry allows games playing before 8AM and after 5PM on
4232370SbosticMondays.
4349640Scael.Bd -literal -offset indent
4444285Sbostictime		Monday	8	17
4549640Scael.Ed
4649640Scael.Pp
4732370SbosticAny game listed after the keyword ``game'' will set parameters for a specific
4832370Sbosticgame.  Entries consist of five white-space separated fields: the keyword
4932370Sbostic``game'', the name of a game, the highest system load average at which the
5032370Sbosticgame may be played, the maximum users allowed if the game is to be played,
5132370Sbosticand the priority at which the game is to be run.  Any of these fields may
5232370Sbosticstart with a non-numeric character, resulting in no game limitation or
5332370Sbosticpriority based on that field.  The game "default" controls the settings for
5432370Sbosticany game not otherwise listed, and must be the last ``game'' entry in the
5532370Sbosticfile.  Priorities may not be negative.  For example, the following entries
5632370Sbosticlimits the game ``hack'' to running only when the system has 10 or less
5732370Sbosticusers and a load average of 5 or less; all other games may be run any time
5832370Sbosticthe system has 15 or less users.
5949640Scael.Bd -literal -offset indent
6044285Sbosticgame		hack		5	10	*
6144285Sbosticgame		default	*	15	*
6249640Scael.Ed
6349640Scael.Sh FILES
6449640Scael.Bl -tag -width /etc/dm.conf -compact
6549640Scael.It Pa /etc/dm.conf
6649640ScaelThe
6749640Scael.Xr \&dm 8
6849640Scaelconfiguration file.
6949640Scael.El
7049640Scael.Sh SEE ALSO
7149640Scael.Xr setpriority 2 ,
7249640Scael.Xr ttyname 3 ,
7349640Scael.Xr dm 8
74