Skip to content

Commit

Permalink
Merge pull request #57 from kairos-io/systemctl
Browse files Browse the repository at this point in the history
using manual command for rke2 service restarts
  • Loading branch information
santhoshdaivajna authored Oct 20, 2023
2 parents 9abb3db + db91435 commit 2bc17d7
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func clusterProvider(cluster clusterplugin.Cluster) yip.YipConfig {

stages := []yip.Stage{
{
Name: " Install RKE2 Configuration Files",
Name: "Install RKE2 Configuration Files",
Files: files,

Commands: []string{
Expand All @@ -115,13 +115,9 @@ func clusterProvider(cluster clusterplugin.Cluster) yip.YipConfig {

stages = append(stages, yip.Stage{
Name: "Enable Systemd Services",
Systemctl: yip.Systemctl{
Enable: []string{
systemName,
},
Start: []string{
systemName,
},
Commands: []string{
fmt.Sprintf("systemctl enable %s", systemName),
fmt.Sprintf("systemctl restart %s", systemName),
},
})

Expand Down

0 comments on commit 2bc17d7

Please sign in to comment.