]> code.citadel.org Git - citadel.git/blobdiff - citadel/utils/setup.c
I can't see the screen with my sunglasses on
[citadel.git] / citadel / utils / setup.c
index 7cb2f811d6db3678247d03acebb6cb21a68de11c..b36da8979ba8f11dc50571822b00c2ccafeaf080 100644 (file)
@@ -4,7 +4,6 @@
 //
 // This program is open source software.  Use, duplication, or disclosure
 // is subject to the terms of the GNU General Public License, version 3.
-// The program is distributed without any warranty, expressed or implied.
 
 #define SHOW_ME_VAPPEND_PRINTF
 #include <stdlib.h>
@@ -482,7 +481,7 @@ void check_xinetd_entry(void) {
        );
        fclose(fp);
 
-       // Now try to restart the service.  This will not have the intended effect on Solaris, but who uses Solaris anymore?
+       // Now try to restart the service.  (This only works on systemd; others will need to restart it manually.)
        rv = system("systemctl restart xinetd >/dev/null 2>&1");
        if (rv != 0) {
                rv = system("service xinetd restart >/dev/null 2>&1");
@@ -643,18 +642,21 @@ void edit_value(int curr) {
 
 // Messages that are no longer in use.
 // We keep them here so we don't lose the translations if we need them later.
-#if 0
-important_message(_("Setup finished"),
-_("Setup of the Citadel server is complete.\n"
-"If you will be using WebCit, please run its\n"
-"setup program now; otherwise, run './citadel'\n"
-"to log in.\n"));
-important_message(_("Setup failed"),
-_("Setup is finished, but the Citadel server failed to start.\n"
-"Go back and check your configuration.\n");
-important_message(_("Setup finished"),
-_("Setup is finished.  You may now start the server."));
-#endif
+void unused_messages(void) {
+       important_message(_("Setup finished"),
+               _("Setup of the Citadel server is complete.\n"
+               "If you will be using WebCit, please run its\n"
+               "setup program now; otherwise, run './citadel'\n"
+               "to log in.\n")
+       );
+       important_message(_("Setup failed"),
+               _("Setup is finished, but the Citadel server failed to start.\n"
+               "Go back and check your configuration.\n")
+       );
+       important_message(_("Setup finished"),
+               _("Setup is finished.  You may now start the server.")
+       );
+}
 
 
 int main(int argc, char *argv[]) {