]> andersk Git - moira.git/blob - server/mr_shutdown.c
24fa88f4a0dde4c3a5db86c856609ce96c3504f8
[moira.git] / server / mr_shutdown.c
1 /*
2  *      $Source$
3  *      $Author$
4  *      $Header$
5  *
6  *      Copyright (C) 1987 by the Massachusetts Institute of Technology
7  *      For copying and distribution information, please see the file
8  *      <mit-copyright.h>.
9  *
10  */
11
12 #ifndef lint
13 static char *rcsid_sms_shutdown_c = "$Header$";
14 #endif lint
15
16 #include <mit-copyright.h>
17 #include <sys/errno.h>
18 #include "mr_server.h"
19
20 extern char *takedown;
21 extern char *whoami;
22
23 void sigshut(int sig)
24 {
25   takedown = "Shut down by signal.";
26 }
27
28 void do_shutdown(client *cl)
29 {
30   /*
31    * This feature is no longer supported.  Sorry.
32    */
33   com_err(whoami, 0, "Shutdown request by %s rejected", cl->clname);
34   cl->reply.mr_status = EACCES;
35 }
36
This page took 0.026427 seconds and 3 git commands to generate.