exit(0);
}
check_firstrun();
+ char **modulelist = get_all_fieldnames("modules");
+ if(!modulelist || !modulelist[0]) {
+ fprintf(stderr, "no modules loaded... Please update your configuration!\n");
+ exit(0);
+ }
+ free(modulelist);
if (run_as_daemon) {
#ifndef WIN32
/* Attempt to fork into the background if daemon mode is on. */
void loadModules() {
char **modulelist = get_all_fieldnames("modules");
+ if(!modulelist) return;
int i = 0;
char tmp[MAXLEN];
struct ModuleInfo *modinfo;
}
i++;
}
+ free(modulelist);
start_modules();
}