k0s icon indicating copy to clipboard operation
k0s copied to clipboard

missing pid file to openrc init

Open arankaren opened this issue 2 years ago • 7 comments

https://github.com/k0sproject/k0s/blob/3fc8d7940d044849e6c9a0f656259167fa0d6b77/pkg/install/linux_openrc.go#L23

it's necessary add pid inside openrc init,

Please add pidfile=/var/run/k0s.pid:

...
description="{{.Description}}"
pidfile=/var/run/k0s.pid
...

arankaren avatar May 31 '22 22:05 arankaren

it's necessary add pid inside openrc init

What issues you see when it's not there? (not saying we shouldn't add it 😄 )

jnummelin avatar Jun 01 '22 08:06 jnummelin

I think it should be /run/k0s.pid (altough /var/run likely is a symlink to /run on many systems)

kke avatar Jun 01 '22 10:06 kke

it's necessary add pid inside openrc init

What issues you see when it's not there? (not saying we shouldn't add it smile )

without the pid the daemon does not work on OS with OpenRC

arankaren avatar Jun 18 '22 20:06 arankaren

Which OS does it not work on? What is the error message or what happens when it does not work?

I am not convinced using the pid file is a good idea.

ncopa avatar Jun 20 '22 12:06 ncopa

OpenRC service script docs:

image

image

--

Looks to me like OpenRC really wants a pidfile

It can create one on its own though:

--

image

kke avatar Jun 20 '22 12:06 kke

The issue is marked as stale since no activity has been recorded in 30 days

github-actions[bot] avatar Jul 20 '22 23:07 github-actions[bot]

without the pid the daemon does not work on OS with OpenRC

It works at least on Alpine. Can you provide more details, as requested in https://github.com/k0sproject/k0s/issues/1775#issuecomment-1160372664? Which OS does it not work on? What is the error message or what happens when it does not work?

twz123 avatar Aug 09 '22 15:08 twz123

The issue is marked as stale since no activity has been recorded in 30 days

github-actions[bot] avatar Sep 08 '22 23:09 github-actions[bot]