|
Lines 381-387
main (int argc, char **argv)
Link Here
|
| 381 |
slurm_conf_install_fork_handlers(); |
381 |
slurm_conf_install_fork_handlers(); |
| 382 |
record_launched_jobs(); |
382 |
record_launched_jobs(); |
| 383 |
|
383 |
|
| 384 |
run_script_health_check(); |
384 |
run_script_health_check(true); |
| 385 |
|
385 |
|
| 386 |
slurm_thread_create_detached(NULL, _registration_engine, NULL); |
386 |
slurm_thread_create_detached(NULL, _registration_engine, NULL); |
| 387 |
|
387 |
|
|
Lines 2611-2617
static void _resource_spec_fini(void)
Link Here
|
| 2611 |
* Returns the run result. If the health check program |
2611 |
* Returns the run result. If the health check program |
| 2612 |
* is not defined, returns success immediately. |
2612 |
* is not defined, returns success immediately. |
| 2613 |
*/ |
2613 |
*/ |
| 2614 |
extern int run_script_health_check(void) |
2614 |
extern int run_script_health_check(bool startup) |
| 2615 |
{ |
2615 |
{ |
| 2616 |
int rc = SLURM_SUCCESS; |
2616 |
int rc = SLURM_SUCCESS; |
| 2617 |
|
2617 |
|
|
Lines 2621-2627
extern int run_script_health_check(void)
Link Here
|
| 2621 |
setenvf(&env, "SLURMD_NODENAME", "%s", conf->node_name); |
2621 |
setenvf(&env, "SLURMD_NODENAME", "%s", conf->node_name); |
| 2622 |
|
2622 |
|
| 2623 |
rc = run_script("health_check", slurm_conf.health_check_program, |
2623 |
rc = run_script("health_check", slurm_conf.health_check_program, |
| 2624 |
0, 60, env, 0); |
2624 |
0, startup ? 1200 : 60, env, 0); |
| 2625 |
|
2625 |
|
| 2626 |
env_array_free(env); |
2626 |
env_array_free(env); |
| 2627 |
} |
2627 |
} |