MOIRAD(8) MAINTENANCE COMMANDS MOIRAD(8) NAME moirad, startmoira - Moira query daemon SYNOPSIS moirad startmoira DESCRIPTION The Moira server must be running on the machine hosting the Moira database for any of the Moira clients to function. Rather than invoke moirad directly, it is started by start- moira, which starts the daemon running in the proper working directory and captures logging messages. Logging is done to standard output. How much gets logged by moirad is controlled by the variable _l_o_g__f_l_a_g_s which is com- piled into the file _m_r__s_r_v_d_a_t_a._c. If critical errors are detected, they are logged to /u1/sms/critical.log and in a zephyrgram to class MOIRA instance MOIRA in addition to standard output. Also, a journal file is kept in /u1/sms/journal logging every successful change of the data- base in a format that can be replayed by _m_r_t_e_s_t(_8). For the server to be able to function properly, if must be run as root and root must have access to the tables through RTI Ingres. It is possible to shutdown the database side of the server when it is necessary to lock out clients. In this state the server will only respond to noop and motd requests. When the file /etc/smsdown exists, the server will close the database the next time there are no clients using it. To force the server to close down the database as soon as any active operation is finished, send it a USR1 signal. The first time a new client connects after the /etc/smsdown file is removed, the database will be re-opened. To force an immediate reopening, send the server a USR2 signal. The contents of the /etc/smsdown file are returned as the Moira motd. startmoira sets its working directory to the root, discon- nects from the terminal and puts itself in the background. It then starts /u1/sms/bin/moirad, and will capture lines the server writes to standard output and log them in /u1/sms/moira.log along with a timestamp. startmoira will also log the exit status of the moirad if it is non-zero. FILES /u1/sms/moira.log /u1/sms/critical.log /u1/sms/journal /etc/smsdown /etc/srvtab - The server must be able to get Kerberos Project Athena Last change: 30 Nov 1988 1 MOIRAD(8) MAINTENANCE COMMANDS MOIRAD(8) tickets for "moira.[servername]". SEE ALSO The Project Athena Technical Plan section on Moira. Project Athena Last change: 30 Nov 1988 2