X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fdird%2Fdird.c;h=db0c015d7c0daf229ed0a329be3fd2392085173e;hb=85b9ac1d1f3494ba97b3a9257deb48ded0ab3284;hp=7a065582de910df0d482e7774509ce57e2a8707a;hpb=cdfaee3ae4ac1997e5fcb4651a7a12533b8d3d5f;p=bacula%2Fbacula diff --git a/bacula/src/dird/dird.c b/bacula/src/dird/dird.c index 7a065582de..db0c015d7c 100644 --- a/bacula/src/dird/dird.c +++ b/bacula/src/dird/dird.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2000-2007 Free Software Foundation Europe e.V. + Copyright (C) 2000-2008 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -247,6 +247,8 @@ int main (int argc, char *argv[]) read_state_file(director->working_directory, "bacula-dir", get_first_port_host_order(director->DIRaddrs)); } + load_dir_plugins(director->plugin_directory); + drop(uid, gid); /* reduce privileges if requested */ if (!check_catalog()) { @@ -333,6 +335,7 @@ void terminate_dird(int sig) already_here = true; stop_watchdog(); generate_daemon_event(NULL, "Exit"); + unload_plugins(); write_state_file(director->working_directory, "bacula-dir", get_first_port_host_order(director->DIRaddrs)); delete_pid_file(director->pid_directory, "bacula-dir", get_first_port_host_order(director->DIRaddrs)); term_scheduler();