diff --git a/src/server/pbsd_main.c b/src/server/pbsd_main.c index 65393378209..215ba8b4f2e 100644 --- a/src/server/pbsd_main.c +++ b/src/server/pbsd_main.c @@ -1452,11 +1452,6 @@ main(int argc, char **argv) /* in case secondary didn't remove the file */ /* also tells the secondary to go idle */ (void)unlink(path_secondaryact); - /* - * Make the scheduler (re)-read the configuration - * and fairshare usage. - */ - (void)contact_sched(SCH_CONFIGURE, NULL, pbs_scheduler_addr, pbs_scheduler_port); } else { /* we believe we are a secondary server */ @@ -2008,6 +2003,13 @@ main(int argc, char **argv) } process_hooks(periodic_req, hook_msg, sizeof(hook_msg), pbs_python_set_interrupt); + /* + * Make the scheduler (re)-read the configuration + * and fairshare usage. + */ + (void)contact_sched(SCH_CONFIGURE, NULL, pbs_scheduler_addr, pbs_scheduler_port); + + /* * main loop of server * stays in this loop until server's state is either