Skip to content

Commit

Permalink
k3s-service: correct binary location in service files
Browse files Browse the repository at this point in the history
Signed-off-by: Joe MacDonald <[email protected]>
  • Loading branch information
jjmcdn committed Jun 30, 2023
1 parent a4ac4c7 commit 4e9f257
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion k3s-rootless.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion k3s.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e9f257

Please sign in to comment.