diff --git a/k3s-rootless.service b/k3s-rootless.service index 5879e2f8f20e..a4b6e5e28115 100644 --- a/k3s-rootless.service +++ b/k3s-rootless.service @@ -26,7 +26,7 @@ Description=k3s (Rootless) Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin # NOTE: Don't try to run `k3s server --rootless` on a terminal, as it doesn't enable cgroup v2 delegation. # If you really need to try it on a terminal, prepend `systemd-run --user -p Delegate=yes --tty` to create a systemd scope. -ExecStart=/usr/local/bin/k3s server --rootless --snapshotter=fuse-overlayfs +ExecStart=/usr/sbin/k3s server --rootless --snapshotter=fuse-overlayfs ExecReload=/bin/kill -s HUP $MAINPID TimeoutSec=0 RestartSec=2 diff --git a/k3s.service b/k3s.service index 7f8c9ec89c35..f84fcb2121cb 100644 --- a/k3s.service +++ b/k3s.service @@ -10,7 +10,7 @@ EnvironmentFile=-/etc/default/%N EnvironmentFile=-/etc/sysconfig/%N EnvironmentFile=-/etc/systemd/system/k3s.service.env ExecStartPre=/bin/sh -xc '! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service' -ExecStart=/usr/local/bin/k3s server +ExecStart=/usr/sbin/k3s server KillMode=process Delegate=yes # Having non-zero Limit*s causes performance problems due to accounting overhead