gear: Set default sysctl values from cloud config

This commit is contained in:
Ettore Di Giacinto 2022-07-16 14:03:57 +00:00 committed by Itxaka
parent a5abe05fa8
commit 0142f031dc
2 changed files with 0 additions and 5 deletions

View File

@ -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]

View File

@ -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 {