* Added .ATN (DOWN) and .ATS (SCDN 1) commands to the client
authorArt Cancro <ajc@citadel.org>
Fri, 14 Jul 2000 03:06:57 +0000 (03:06 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 14 Jul 2000 03:06:57 +0000 (03:06 +0000)
citadel/ChangeLog
citadel/citadel.c
citadel/citadel.rc
citadel/help/summary

index 1ae2d8385b195d8b64909bf8b20b0dac2b2e3969..ac3d3d465faa782d360e61d4b66ff344707cfc02 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 572.16  2000/07/14 03:06:55  ajc
+ * Added .ATN (DOWN) and .ATS (SCDN 1) commands to the client
+
  Revision 572.15  2000/07/10 23:36:08  ajc
  * Another attempt to fix the crashy crashy bug in serv_vcard
  * Did more work on the Art Vandelay module
@@ -1946,3 +1949,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * Initial CVS import 
+
index c4381db77412d4e868b4474826fc45fc2d946b6a..f53e3bfb1923090af95eae0c7a2530d0a1826ab0 100644 (file)
@@ -1222,6 +1222,40 @@ PWOK:    printf("%s\nAccess level: %d (%s)\nUser #%ld / Call #%d\n",
                                }
                                break;
 
+                       case 85:
+                               printf("All users will be disconnected!  "
+                                       "Really terminate the server? ");
+                               if (yesno() == 1) {
+                                       serv_puts("DOWN");
+                                       serv_gets(aaa);
+                                       printf("%s\n", &aaa[4]);
+                                       if (aaa[0]=='2') {
+                                               updatels();
+                                               a = 0;
+                                               termn8 = 1;
+                                       }
+                               }
+
+                       case 86:
+                               printf("Do you really want to schedule a "
+                                       "server shutdown? ");
+                               if (yesno() == 1) {
+                                       serv_puts("SCDN 1");
+                                       serv_gets(aaa);
+                                       if (aaa[0]=='2') {
+                                               if (atoi(&aaa[4])) {
+                                                       printf(
+"The Citadel server will terminate when all users are logged off.\n"
+                                                               );
+                                               }
+                                               else {
+                                                       printf(
+"The Citadel server will not terminate.\n"
+                                                               );
+                                               }
+                                       }
+                               }
+
                        case 6:
                                gotonext();
                                break;
index 1041fc7559af4fffe673fd4c3d8f7967e06f9548..786a2a36c096c05127b3e964697ac1716cd85482 100644 (file)
@@ -178,6 +178,8 @@ cmd=78,1,&.,&Aide,&Post
 cmd=80,2,&.,&Aide,&System configuration,&General
 cmd=82,2,&.,&Aide,&System configuration,&Internet
 cmd=83,2,&.,&Aide,&System configuration,check &Message base
+cmd=85,2,&.,&Aide,&Terminate server,&Now
+cmd=86,2,&.,&Aide,&Terminate server,&Scheduled
 
 cmd=29,0,&.,&Terminate,and &Quit
 cmd=30,0,&.,&Terminate,and &Stay online
index 127ca2d0c318ea4d1cd124c3e18623fd29a9569e..db994ff1fa88f8ae7bb509350949a73f0eb59a6f 100644 (file)
@@ -101,3 +101,5 @@ commands are available:
  <.> <A>ide <M>essage edit:   
  <.> <A>ide <P>ost   
  <.> <A>ide <S>ystem configuration   
+ <.> <A>ide <T>erminate server <N>ow
+ <.> <A>ide <T>erminate server <S>cheduled