if (!init_change_notify())
exit(1);
+ /* Setup the PASSDB subsystem */
+ if(!initialize_password_db(False))
+ exit(1);
+
+ talloc_destroy(mem_ctx);
+}
+
+void init_subsystems(void)
+{
+ /* Setup the PROCESS_MODEL subsystem */
+ if (!process_model_init())
+ exit(1);
+
/* Setup the AUTH subsystem */
if (!auth_init())
exit(1);
/* Setup the PASSDB subsystem */
if (!passdb_init())
exit(1);
- if(!initialize_password_db(False))
- exit(1);
/* Setup the NTVFS subsystem */
if (!ntvfs_init())
if (!dcesrv_init())
exit(1);
- talloc_destroy(mem_ctx);
}
-
{
const struct model_ops *ops;
- process_model_init();
-
ops = process_model_byname(model);
if (!ops) {
DEBUG(0,("Unknown process model '%s'\n", model));
register_msg_pool_usage();
register_dmalloc_msgs();
+ init_subsystems();
+
setup_process_model(events, model);
/* wait for events */