setlocale(LC_ALL, "");
bindtextdomain("bacula", LOCALEDIR);
textdomain("bacula");
+ lmgr_init_thread();
while ((ch = getopt(argc, argv, "ac:d:f:?")) != -1) {
switch (ch) {
term_msg();
close_memory_pool();
+ lmgr_cleanup_main();
sm_dump(false);
exit(0);
}