From 4e9f2573aa087bb283e2f58b6ac7b318b2e2de58 Mon Sep 17 00:00:00 2001 From: Joe MacDonald Date: Fri, 30 Jun 2023 09:35:52 -0400 Subject: [PATCH] k3s-service: correct binary location in service files Signed-off-by: Joe MacDonald --- k3s-rootless.service | 2 +- k3s.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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