* make some pointers const...
[citadel.git] / citadel / server_main.c
index ea03a202caf2dc8d28383f9cd15cfb8cfd2d1960..b3d110cd8b498b4631621fb143eb0989b65d390d 100644 (file)
@@ -133,7 +133,6 @@ int main(int argc, char **argv)
                        else
                                safestrncpy(relhome, &argv[a][2],
                                                        sizeof relhome);
-                       home_specified = 1;
                        home=1;
                }
 
@@ -249,6 +248,11 @@ int main(int argc, char **argv)
         */
        master_startup();
 
+       /*
+        * Check that the control record is correct and place sensible values if it isn't
+        */
+       check_control();
+       
        /*
         * Run any upgrade entry points
         */
@@ -306,6 +310,14 @@ int main(int argc, char **argv)
                start_chkpwd_daemon();
        }
 
+
+       /*
+        * check, whether we're fired up another time after a crash.
+        * if, post an aide message, so the admin has a chance to react.
+        */
+       checkcrash ();
+
+
        /*
         * Now that we've bound the sockets, change to the Citadel user id and its
         * corresponding group ids