|
Lines 96-102
strong_alias(sort_key_pairs, slurm_sort_key_pairs);
Link Here
|
| 96 |
strong_alias(run_in_daemon, slurm_run_in_daemon); |
96 |
strong_alias(run_in_daemon, slurm_run_in_daemon); |
| 97 |
|
97 |
|
| 98 |
/* |
98 |
/* |
| 99 |
* Instantiation of the "extern slurm_ctl_conf_t slurmcltd_conf" and |
99 |
* Instantiation of the "extern slurm_ctl_conf_t slurmctld_conf" and |
| 100 |
* "bool ignore_state_errors" found in slurmctld.h |
100 |
* "bool ignore_state_errors" found in slurmctld.h |
| 101 |
*/ |
101 |
*/ |
| 102 |
slurm_ctl_conf_t slurmctld_conf; |
102 |
slurm_ctl_conf_t slurmctld_conf; |
|
Lines 326-331
s_p_options_t slurm_conf_options[] = {
Link Here
|
| 326 |
{"SlurmctldPidFile", S_P_STRING}, |
326 |
{"SlurmctldPidFile", S_P_STRING}, |
| 327 |
{"SlurmctldPlugstack", S_P_STRING}, |
327 |
{"SlurmctldPlugstack", S_P_STRING}, |
| 328 |
{"SlurmctldPort", S_P_STRING}, |
328 |
{"SlurmctldPort", S_P_STRING}, |
|
|
329 |
{"SlurmctldSyslogDebug", S_P_STRING}, |
| 329 |
{"SlurmctldTimeout", S_P_UINT16}, |
330 |
{"SlurmctldTimeout", S_P_UINT16}, |
| 330 |
{"SlurmdDebug", S_P_STRING}, |
331 |
{"SlurmdDebug", S_P_STRING}, |
| 331 |
{"SlurmdLogFile", S_P_STRING}, |
332 |
{"SlurmdLogFile", S_P_STRING}, |
|
Lines 333-338
s_p_options_t slurm_conf_options[] = {
Link Here
|
| 333 |
{"SlurmdPlugstack", S_P_STRING}, |
334 |
{"SlurmdPlugstack", S_P_STRING}, |
| 334 |
{"SlurmdPort", S_P_UINT32}, |
335 |
{"SlurmdPort", S_P_UINT32}, |
| 335 |
{"SlurmdSpoolDir", S_P_STRING}, |
336 |
{"SlurmdSpoolDir", S_P_STRING}, |
|
|
337 |
{"SlurmdSyslogDebug", S_P_STRING}, |
| 336 |
{"SlurmdTimeout", S_P_UINT16}, |
338 |
{"SlurmdTimeout", S_P_UINT16}, |
| 337 |
{"SlurmSchedLogFile", S_P_STRING}, |
339 |
{"SlurmSchedLogFile", S_P_STRING}, |
| 338 |
{"SlurmSchedLogLevel", S_P_UINT16}, |
340 |
{"SlurmSchedLogLevel", S_P_UINT16}, |
|
Lines 2590-2595
init_slurm_conf (slurm_ctl_conf_t *ctl_conf_ptr)
Link Here
|
| 2590 |
xfree (ctl_conf_ptr->slurmd_user_name); |
2592 |
xfree (ctl_conf_ptr->slurmd_user_name); |
| 2591 |
ctl_conf_ptr->slurmctld_debug = (uint16_t) NO_VAL; |
2593 |
ctl_conf_ptr->slurmctld_debug = (uint16_t) NO_VAL; |
| 2592 |
xfree (ctl_conf_ptr->slurmctld_logfile); |
2594 |
xfree (ctl_conf_ptr->slurmctld_logfile); |
|
|
2595 |
ctl_conf_ptr->slurmctld_syslog_debug = (uint16_t) NO_VAL; |
| 2593 |
xfree (ctl_conf_ptr->sched_logfile); |
2596 |
xfree (ctl_conf_ptr->sched_logfile); |
| 2594 |
ctl_conf_ptr->sched_log_level = (uint16_t) NO_VAL; |
2597 |
ctl_conf_ptr->sched_log_level = (uint16_t) NO_VAL; |
| 2595 |
xfree (ctl_conf_ptr->slurmctld_pidfile); |
2598 |
xfree (ctl_conf_ptr->slurmctld_pidfile); |
|
Lines 2599-2604
init_slurm_conf (slurm_ctl_conf_t *ctl_conf_ptr)
Link Here
|
| 2599 |
ctl_conf_ptr->slurmctld_timeout = (uint16_t) NO_VAL; |
2602 |
ctl_conf_ptr->slurmctld_timeout = (uint16_t) NO_VAL; |
| 2600 |
ctl_conf_ptr->slurmd_debug = (uint16_t) NO_VAL; |
2603 |
ctl_conf_ptr->slurmd_debug = (uint16_t) NO_VAL; |
| 2601 |
xfree (ctl_conf_ptr->slurmd_logfile); |
2604 |
xfree (ctl_conf_ptr->slurmd_logfile); |
|
|
2605 |
ctl_conf_ptr->slurmd_syslog_debug = (uint16_t) NO_VAL; |
| 2602 |
xfree (ctl_conf_ptr->slurmd_pidfile); |
2606 |
xfree (ctl_conf_ptr->slurmd_pidfile); |
| 2603 |
xfree (ctl_conf_ptr->slurmd_plugstack); |
2607 |
xfree (ctl_conf_ptr->slurmd_plugstack); |
| 2604 |
ctl_conf_ptr->slurmd_port = (uint32_t) NO_VAL; |
2608 |
ctl_conf_ptr->slurmd_port = (uint32_t) NO_VAL; |
|
Lines 4091-4096
_validate_and_set_defaults(slurm_ctl_conf_t *conf, s_p_hashtbl_t *hashtbl)
Link Here
|
| 4091 |
(void )s_p_get_string(&conf->slurmctld_logfile, "SlurmctldLogFile", |
4095 |
(void )s_p_get_string(&conf->slurmctld_logfile, "SlurmctldLogFile", |
| 4092 |
hashtbl); |
4096 |
hashtbl); |
| 4093 |
|
4097 |
|
|
|
4098 |
if (s_p_get_string(&temp_str, "SlurmctldSyslogDebug", hashtbl)) { |
| 4099 |
conf->slurmctld_syslog_debug = log_string2num(temp_str); |
| 4100 |
if (conf->slurmctld_syslog_debug == (uint16_t) NO_VAL) { |
| 4101 |
error("Invalid SlurmctldSyslogDebug %s", temp_str); |
| 4102 |
return SLURM_ERROR; |
| 4103 |
} |
| 4104 |
xfree(temp_str); |
| 4105 |
_normalize_debug_level(&conf->slurmctld_syslog_debug); |
| 4106 |
} else |
| 4107 |
conf->slurmctld_syslog_debug = 0; |
| 4108 |
|
| 4094 |
if (s_p_get_string(&temp_str, "SlurmctldPort", hashtbl)) { |
4109 |
if (s_p_get_string(&temp_str, "SlurmctldPort", hashtbl)) { |
| 4095 |
char *end_ptr = NULL; |
4110 |
char *end_ptr = NULL; |
| 4096 |
long port_long; |
4111 |
long port_long; |
|
Lines 4164-4169
_validate_and_set_defaults(slurm_ctl_conf_t *conf, s_p_hashtbl_t *hashtbl)
Link Here
|
| 4164 |
if (!s_p_get_string(&conf->slurmd_spooldir, "SlurmdSpoolDir", hashtbl)) |
4179 |
if (!s_p_get_string(&conf->slurmd_spooldir, "SlurmdSpoolDir", hashtbl)) |
| 4165 |
conf->slurmd_spooldir = xstrdup(DEFAULT_SPOOLDIR); |
4180 |
conf->slurmd_spooldir = xstrdup(DEFAULT_SPOOLDIR); |
| 4166 |
|
4181 |
|
|
|
4182 |
if (s_p_get_string(&temp_str, "SlurmdSyslogDebug", hashtbl)) { |
| 4183 |
conf->slurmd_syslog_debug = log_string2num(temp_str); |
| 4184 |
if (conf->slurmd_syslog_debug == (uint16_t) NO_VAL) { |
| 4185 |
error("Invalid SlurmdSyslogDebug %s", temp_str); |
| 4186 |
return SLURM_ERROR; |
| 4187 |
} |
| 4188 |
xfree(temp_str); |
| 4189 |
_normalize_debug_level(&conf->slurmd_syslog_debug); |
| 4190 |
} else |
| 4191 |
conf->slurmd_syslog_debug = 0; |
| 4192 |
|
| 4167 |
if (!s_p_get_uint16(&conf->slurmd_timeout, "SlurmdTimeout", hashtbl)) |
4193 |
if (!s_p_get_uint16(&conf->slurmd_timeout, "SlurmdTimeout", hashtbl)) |
| 4168 |
conf->slurmd_timeout = DEFAULT_SLURMD_TIMEOUT; |
4194 |
conf->slurmd_timeout = DEFAULT_SLURMD_TIMEOUT; |
| 4169 |
|
4195 |
|