We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e832c67 commit e6b5e93Copy full SHA for e6b5e93
scripts/upgrade.sh
@@ -42,7 +42,7 @@ get_k3s_process_info() {
42
# If the parent pid is not 1 (init/systemd) then we are nested and need to operate against that 'k3s init' pid instead.
43
# Make sure that the parent pid is actually k3s though, as openrc systems may run k3s under supervise-daemon instead of
44
# as a child process of init.
45
- if [ "$K3S_PPID" != "1" ] && tr "\0" " " < "/host/proc/${K3S_PPID}/cmdline" | grep k3s | grep -q -v supervise-daemon; then
+ if [ "$K3S_PPID" != "1" ] && tr "\0" " " < "/host/proc/${K3S_PPID}/cmdline" | grep k3s | grep -q -v "supervise-daemon\|runsv"; then
46
K3S_PID="${K3S_PPID}"
47
fi
48
0 commit comments