From: Art Cancro Date: Fri, 14 Jul 2000 03:06:57 +0000 (+0000) Subject: * Added .ATN (DOWN) and .ATS (SCDN 1) commands to the client X-Git-Tag: v7.86~7161 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=c86f0de4ac024a218ad8845e93f8cccd1e2cd9cd * Added .ATN (DOWN) and .ATS (SCDN 1) commands to the client --- diff --git a/citadel/ChangeLog b/citadel/ChangeLog index 1ae2d8385..ac3d3d465 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -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 Fri Jul 10 1998 Art Cancro * Initial CVS import + diff --git a/citadel/citadel.c b/citadel/citadel.c index c4381db77..f53e3bfb1 100644 --- a/citadel/citadel.c +++ b/citadel/citadel.c @@ -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; diff --git a/citadel/citadel.rc b/citadel/citadel.rc index 1041fc755..786a2a36c 100644 --- a/citadel/citadel.rc +++ b/citadel/citadel.rc @@ -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 diff --git a/citadel/help/summary b/citadel/help/summary index 127ca2d0c..db994ff1f 100644 --- a/citadel/help/summary +++ b/citadel/help/summary @@ -101,3 +101,5 @@ commands are available: <.> ide essage edit: <.> ide

ost <.> ide ystem configuration + <.> ide erminate server ow + <.> ide erminate server cheduled