mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-06-03 01:44:53 +00:00
gear: Set default sysctl values from cloud config
This commit is contained in:
parent
a5abe05fa8
commit
0142f031dc
@ -6,7 +6,6 @@ After=network.target
|
||||
[Service]
|
||||
EnvironmentFile=/etc/systemd/system.conf.d/edgevpn-%i.env
|
||||
LimitNOFILE=49152
|
||||
ExecStartPre=-/bin/sh -c "sysctl -w net.core.rmem_max=2500000"
|
||||
ExecStart=edgevpn
|
||||
Restart=always
|
||||
[Install]
|
||||
|
@ -39,10 +39,6 @@ func Bootstrap(e *pluggable.Event) pluggable.EventResponse {
|
||||
|
||||
// TODO: this belong to a systemd service that is started instead
|
||||
|
||||
// TODO: Remove sysctl here and have a default config with
|
||||
// specific sysctl/directories/things to start.
|
||||
utils.SH("sysctl -w net.core.rmem_max=2500000")
|
||||
|
||||
tokenNotDefined := (c.C3OS == nil || c.C3OS.NetworkToken == "")
|
||||
|
||||
if c.C3OS == nil && !c.K3s.Enabled && !c.K3sAgent.Enabled {
|
||||
|
Loading…
Reference in New Issue
Block a user