]> code.citadel.org Git - citadel.git/blobdiff - citadel/server_main.c
* Applied a patch sent in by Wilfried Goesgens which allows the various
[citadel.git] / citadel / server_main.c
index 3c610aba915ae23e95de5a140df1216becc5f86d..c29caa7aa9d5cca74356e3be3ed41e20017d3c05 100644 (file)
@@ -183,7 +183,12 @@ int main(int argc, char **argv)
         * Bind the server to a Unix-domain socket.
         */
        CtdlRegisterServiceHook(0,
-                               "citadel.socket",
+#ifndef HAVE_RUN_DIR
+                                        "."
+#else
+                                        RUN_DIR
+#endif
+                               "/citadel.socket",
                                citproto_begin_session,
                                do_command_loop,
                                do_async_loop);
@@ -243,7 +248,7 @@ int main(int argc, char **argv)
        end_critical_section(S_WORKER_LIST);
 
        /* Create the indexer thread. */
-       create_indexer_thread();
+       create_maintenance_threads();
 
        /* This thread is now useless.  It can't be turned into a worker
         * thread because its stack is too small, but it can't be killed