source: trunk/third/moira/server/mr_shutdown.c @ 23740

Revision 23740, 739 bytes checked in by broder, 15 years ago (diff)
In moira: * New CVS snapshot (Trac: #195) * Drop patches that have been incorporated upstream. * Update to build without krb4 on systems that no longer have it. This doesn't build yet on squeeze, which lacks a krb4 library, but I'm committing now before I start hacking away at a patch to fix that.
Line 
1/* $Id: mr_shutdown.c,v 1.11 1998-02-15 17:49:15 danw Exp $
2 *
3 * Copyright (C) 1987-1998 by the Massachusetts Institute of Technology
4 * For copying and distribution information, please see the file
5 * <mit-copyright.h>.
6 */
7
8#include <mit-copyright.h>
9#include "mr_server.h"
10
11#include <errno.h>
12
13RCSID("$Header: /afs/athena.mit.edu/astaff/project/moiradev/repository/moira/server/mr_shutdown.c,v 1.11 1998-02-15 17:49:15 danw Exp $");
14
15extern char *takedown;
16extern char *whoami;
17
18void sigshut(int sig)
19{
20  takedown = "Shut down by signal.";
21}
22
23void do_shutdown(client *cl)
24{
25  /*
26   * This feature is no longer supported.  Sorry.
27   */
28  com_err(whoami, 0, "Shutdown request by %s rejected", cl->clname);
29  client_reply(cl, EACCES);
30}
31
Note: See TracBrowser for help on using the repository browser.