main.c revision e59faf65ce864fe95dc00f5d52b8323cdbd0608a
/* Copyright (c) 2005-2010 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "restrict-access.h"
#include "randgen.h"
#include "env-util.h"
#include "module-dir.h"
#include "master-service.h"
#include "master-service-settings.h"
#include "sql-api.h"
#include "dict.h"
#include "dict-client.h"
#include "dict-connection.h"
#include "dict-settings.h"
static void dict_die(void)
{
/* hope that other processes relying on us will die first. */
}
{
}
static void main_preinit(void)
{
chrooting. */
random_init();
/* Load built-in SQL drivers (if any) */
}
static void main_init(void)
{
struct module_dir_load_settings mod_set;
void **sets;
dict_settings = sets[0];
/* for berkeley db library */
NULL));
}
/* Register only after loading modules. They may contain SQL drivers,
which we'll need to register. */
}
static void main_deinit(void)
{
}
{
const struct setting_parser_info *set_roots[] = {
};
const char *error;
if (master_getopt(master_service) > 0)
return FATAL_DEFAULT;
&error) < 0)
main_preinit();
main_init();
main_deinit();
return 0;
}