fix k0s services

Signed-off-by: William Rizzo <william.rizzo@gmail.com>
This commit is contained in:
William Rizzo
2025-01-12 07:20:26 +01:00
parent 8a3798e691
commit 55c615f777

View File

@@ -106,37 +106,6 @@ func K3sEnvUnit(unit string) string {
return fmt.Sprintf("/etc/sysconfig/%s", unit)
}
func K0s() (Service, error) {
if utils.IsOpenRCBased() {
return openrc.NewService(
openrc.WithName("k0scontroller"),
)
}
return systemd.NewService(
systemd.WithName("k0scontroller"),
)
}
func K0sWorker() (Service, error) {
if utils.IsOpenRCBased() {
return openrc.NewService(
openrc.WithName("k3sworker"),
)
}
return systemd.NewService(
systemd.WithName("k0sworker"),
)
}
func K0sEnvUnit(unit string) string {
if utils.IsOpenRCBased() {
return fmt.Sprintf("/etc/k0s/%s.env", unit)
}
return fmt.Sprintf("/etc/sysconfig/%s", unit)
}
func K0s() (Service, error) {
if utils.IsOpenRCBased() {