Skip to content

Commit e6b5e93

Browse files
committed
support runit init system
1 parent e832c67 commit e6b5e93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/upgrade.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ get_k3s_process_info() {
4242
# If the parent pid is not 1 (init/systemd) then we are nested and need to operate against that 'k3s init' pid instead.
4343
# Make sure that the parent pid is actually k3s though, as openrc systems may run k3s under supervise-daemon instead of
4444
# 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
45+
if [ "$K3S_PPID" != "1" ] && tr "\0" " " < "/host/proc/${K3S_PPID}/cmdline" | grep k3s | grep -q -v "supervise-daemon\|runsv"; then
4646
K3S_PID="${K3S_PPID}"
4747
fi
4848

0 commit comments

Comments
 (0)