Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
267858c0
Commit
267858c0
authored
Jan 12, 2022
by
Brad Davidson
Committed by
Brad Davidson
Jan 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip CGroup v2 evac when agent is disabled
Signed-off-by:
Brad Davidson
<
brad.davidson@rancher.com
>
parent
462434a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
server.go
pkg/cli/server/server.go
+5
-1
No files found.
pkg/cli/server/server.go
View file @
267858c0
...
@@ -56,10 +56,14 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont
...
@@ -56,10 +56,14 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont
// database credentials or other secrets.
// database credentials or other secrets.
gspt
.
SetProcTitle
(
os
.
Args
[
0
]
+
" server"
)
gspt
.
SetProcTitle
(
os
.
Args
[
0
]
+
" server"
)
// Evacuate cgroup v2 before doing anything else that may fork.
// If the agent is enabled, evacuate cgroup v2 before doing anything else that may fork.
// If the agent is disabled, we don't need to bother doing this as it is only the kubelet
// that cares about cgroups.
if
!
cfg
.
DisableAgent
{
if
err
:=
cmds
.
EvacuateCgroup2
();
err
!=
nil
{
if
err
:=
cmds
.
EvacuateCgroup2
();
err
!=
nil
{
return
err
return
err
}
}
}
// Initialize logging, and subprocess reaping if necessary.
// Initialize logging, and subprocess reaping if necessary.
// Log output redirection and subprocess reaping both require forking.
// Log output redirection and subprocess reaping both require forking.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment