]> andersk Git - moira.git/blame - man/dcm.8
sync'ing files for RCS->CVS migration
[moira.git] / man / dcm.8
CommitLineData
5834a392 1.TH DCM 8 "30 Nov 1988" "Project Athena"
2\" RCSID: $Header$
3.SH NAME
7014af98 4dcm, startdcm \- build config files from Moira database and update servers
5834a392 5.SH SYNOPSIS
6.B dcm
7[-d level]
8.br
9.B startdcm
10.SH DESCRIPTION
11The
12.B dcm
7014af98 13must be run periodically on the Moira server. It is usually run every
5834a392 1415 minutes by the
15.I cron
16daemon. Rather than invoke
17.B dcm
18directly, cron runs
19.B startdcm,
20which starts the dcm running in the proper working directory and
21captures logging messages.
22.PP
23The
24.B dcm
25may be disabled by the presence of the file
26.I /etc/nodcm
27or by setting the value of
28.I dcm_enable
7014af98 29to zero in the Moira database. Debug mode may be enabled in the dcm by
5834a392 30specifying an integer on the command line or by setting the
31environment variable
32.B DEBUG.
33The command line value will override the environment variable. Three
34bits are currently defined in the debug value: DBG_PLAIN = 01,
35DBG_VERBOSE = 02, DBG_TRACE = 04. Logging is done to standard output.
36If critical errors are detected, they are logged to
37.B /u1/sms/critical.log
38and in a zephyrgram to class
7014af98 39.B Moira
5834a392 40instance
41.B DCM
42in addition to standard output.
8d655ac7 43For the
44.B dcm
45to function properly,
46.I root
47must both be authorized to access each of the tables by RTI Ingres,
48and on the query acls for each of the queries the
49.B dcm
50will execute.
51.PP
5834a392 52For the actual generation of config files, the
53.B dcm
7014af98 54will fork off generator programs of the form
5834a392 55.B /u1/sms/bin/\fIservice\fB.gen.
56Each generator takes as an argument the name of the output file to
57produce. Many of them also require working directories in
58.B /u1/sms/dcm/\fIservice\fB.
59A generator exits with a status code defined in
7d37e1a9 60.I <mr_et.h>.
5834a392 61In particular,
7d37e1a9 62.B MR_NO_CHANGE
5834a392 63is a common exit status if the database hasn't changed since the last
64time this generator was run.
65.PP
66.B startdcm
67sets its working directory to the root, disconnects from the terminal
68and puts itself in the background. It then starts
69.B /u1/sms/bin/dcm,
70and will capture lines the dcm writes to standard output and log them
71in
72.B /u1/sms/dcm.log
73along with a timestamp.
74.B startdcm
75will also log the exit status of the
76.B dcm
77if it is non-zero.
78.SH FILES
79/u1/sms/dcm.log
80.br
81/u1/sms/critical.log
82.br
83/u1/sms/dcm/locks/* \- empty files will be created here for advisory locks.
84.br
85/u1/sms/bin/*.gen \- service file generators will be searched for
86here.
87.br
34e7a903 88/tmp/tkt_dcm \- temporary Kerberos ticket storage.
89.br
90/etc/srvtab \- The dcm must be able to get Kerberos tickets for "sms"
91(null instance).
5834a392 92.SH "SEE ALSO"
7014af98 93The Project Athena Technical Plan section on Moira.
This page took 0.092665 seconds and 5 git commands to generate.