Merge pull request #72 from kairos-io/systemctl

using manual command for k3s service restarts
This commit is contained in:
Santhosh 2023-10-20 14:44:34 -07:00 committed by GitHub
commit 065f6ecf7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

13
main.go
View File

@ -137,15 +137,12 @@ func clusterProvider(cluster clusterplugin.Cluster) yip.YipConfig {
yip.Stage{ yip.Stage{
Name: "Enable Systemd Services", Name: "Enable Systemd Services",
If: "[ -x /bin/systemctl ]", If: "[ -x /bin/systemctl ]",
Systemctl: yip.Systemctl{ Commands: []string{
Enable: []string{ fmt.Sprintf("systemctl enable %s", systemName),
systemName, fmt.Sprintf("systemctl restart %s", systemName),
},
Start: []string{
systemName,
},
}, },
}) },
)
cfg := yip.YipConfig{ cfg := yip.YipConfig{
Name: "K3s Kairos Cluster Provider", Name: "K3s Kairos Cluster Provider",