Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
d323d859
Commit
d323d859
authored
11 years ago
by
David Bigagli
Browse files
Options
Downloads
Patches
Plain Diff
Modify slurmstepd to log using LogTimeFormat in slurm.conf.
parent
fc0a821c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/slurmd/common/slurmstepd_init.c
+2
-0
2 additions, 0 deletions
src/slurmd/common/slurmstepd_init.c
src/slurmd/slurmstepd/slurmstepd.c
+2
-0
2 additions, 0 deletions
src/slurmd/slurmstepd/slurmstepd.c
with
4 additions
and
0 deletions
src/slurmd/common/slurmstepd_init.c
+
2
−
0
View file @
d323d859
...
@@ -71,6 +71,7 @@ extern void pack_slurmd_conf_lite(slurmd_conf_t *conf, Buf buffer)
...
@@ -71,6 +71,7 @@ extern void pack_slurmd_conf_lite(slurmd_conf_t *conf, Buf buffer)
packstr
(
conf
->
node_topo_addr
,
buffer
);
packstr
(
conf
->
node_topo_addr
,
buffer
);
packstr
(
conf
->
node_topo_pattern
,
buffer
);
packstr
(
conf
->
node_topo_pattern
,
buffer
);
pack32
((
uint32_t
)
conf
->
port
,
buffer
);
pack32
((
uint32_t
)
conf
->
port
,
buffer
);
pack16
(
conf
->
log_fmt
,
buffer
);
}
}
extern
int
unpack_slurmd_conf_lite_no_alloc
(
slurmd_conf_t
*
conf
,
Buf
buffer
)
extern
int
unpack_slurmd_conf_lite_no_alloc
(
slurmd_conf_t
*
conf
,
Buf
buffer
)
...
@@ -109,6 +110,7 @@ extern int unpack_slurmd_conf_lite_no_alloc(slurmd_conf_t *conf, Buf buffer)
...
@@ -109,6 +110,7 @@ extern int unpack_slurmd_conf_lite_no_alloc(slurmd_conf_t *conf, Buf buffer)
safe_unpackstr_xmalloc
(
&
conf
->
node_topo_addr
,
&
uint32_tmp
,
buffer
);
safe_unpackstr_xmalloc
(
&
conf
->
node_topo_addr
,
&
uint32_tmp
,
buffer
);
safe_unpackstr_xmalloc
(
&
conf
->
node_topo_pattern
,
&
uint32_tmp
,
buffer
);
safe_unpackstr_xmalloc
(
&
conf
->
node_topo_pattern
,
&
uint32_tmp
,
buffer
);
safe_unpack32
(
&
uint32_tmp
,
buffer
);
safe_unpack32
(
&
uint32_tmp
,
buffer
);
safe_unpack16
(
&
conf
->
log_fmt
,
buffer
);
conf
->
port
=
uint32_tmp
;
conf
->
port
=
uint32_tmp
;
return
SLURM_SUCCESS
;
return
SLURM_SUCCESS
;
...
...
This diff is collapsed.
Click to expand it.
src/slurmd/slurmstepd/slurmstepd.c
+
2
−
0
View file @
d323d859
...
@@ -404,7 +404,9 @@ _init_from_slurmd(int sock, char **argv,
...
@@ -404,7 +404,9 @@ _init_from_slurmd(int sock, char **argv,
/* receive conf from slurmd */
/* receive conf from slurmd */
if
((
conf
=
read_slurmd_conf_lite
(
sock
))
==
NULL
)
if
((
conf
=
read_slurmd_conf_lite
(
sock
))
==
NULL
)
fatal
(
"Failed to read conf from slurmd"
);
fatal
(
"Failed to read conf from slurmd"
);
log_alter
(
conf
->
log_opts
,
0
,
conf
->
logfile
);
log_alter
(
conf
->
log_opts
,
0
,
conf
->
logfile
);
log_set_timefmt
(
conf
->
log_fmt
);
debug2
(
"debug level is %d."
,
conf
->
debug_level
);
debug2
(
"debug level is %d."
,
conf
->
debug_level
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment