]> code.citadel.org Git - citadel.git/blobdiff - ctdlsh/main.c
Simple concurrency lock to prevent multiple citservers running at the same time
[citadel.git] / ctdlsh / main.c
index 4e4009898a1d9d867b02628a8cdae56aac80e711..6fc29315c51ab7d35cc5f1ae3f16297689e7dffe 100644 (file)
@@ -24,13 +24,14 @@ COMMAND commands[] = {
        {       "?",            cmd_help,       "Display this message"                  },
        {       "help",         cmd_help,       "Display this message"                  },
        {       "date",         cmd_datetime,   "Print the server's date and time"      },
-       {       "exit",         cmd_quit,       "Quit using ctdlsh"                     },
+       {       "config",       cmd_config,     "Configure the Citadel server"          },
        {       "export",       cmd_export,     "Export all Citadel databases"          },
        {       "shutdown",     cmd_shutdown,   "Shut down the Citadel server"          },
        {       "time",         cmd_datetime,   "Print the server's date and time"      },
        {       "passwd",       cmd_passwd,     "Set or change an account password"     },
-       {       "quit",         cmd_quit,       "Quit using ctdlsh"                     },
        {       "who",          cmd_who,        "Display a list of online users"        },
+       {       "exit",         cmd_quit,       "Quit using ctdlsh"                     },
+       {       "quit",         cmd_quit,       "Quit using ctdlsh"                     },
        {       NULL,           NULL,           NULL                                    }
 };
 
@@ -169,6 +170,7 @@ int main(int argc, char **argv)
 
        sock_getln(server_socket, buf, sizeof buf);
        if (buf[0] == '2') {
+               printf("Connected: %s\n", buf);
                do_main_loop(server_socket);
        }