]> code.citadel.org Git - citadel.git/blobdiff - citadel/citserver.c
Handle zero-length legacy netconfig files correctly (just delete them)
[citadel.git] / citadel / citserver.c
index 3b63214b882026af3b27615a6ce50ebc01fff0c6..9832b781276932dbab8d01c4bee2e1ae96c4effc 100644 (file)
@@ -138,12 +138,10 @@ void master_startup(void) {
        open_databases();
 
        /* Load site-specific configuration */
-       syslog(LOG_INFO, "Loading citadel.config");
+       syslog(LOG_INFO, "Initializing configuration system");
        initialize_config_system();
        validate_config();
-
-       syslog(LOG_INFO, "Acquiring control record");
-       get_control();
+       migrate_legacy_control_record();
 
        /* Check floor reference counts */
        check_ref_counts();
@@ -223,8 +221,6 @@ void master_cleanup(int exitcode) {
                }
        }
        
-       release_control();
-
        /* Now go away. */
        syslog(LOG_NOTICE, "citserver: Exiting with status %d\n", exitcode);
        fflush(stdout); fflush(stderr);