|
@@ -6,6 +6,7 @@ import (
|
|
"log"
|
|
"log"
|
|
"os"
|
|
"os"
|
|
"path/filepath"
|
|
"path/filepath"
|
|
|
|
+ "time"
|
|
|
|
|
|
"github.com/gravitl/netmaker/netclient/ncutils"
|
|
"github.com/gravitl/netmaker/netclient/ncutils"
|
|
)
|
|
)
|
|
@@ -74,7 +75,9 @@ WantedBy=multi-user.target
|
|
}
|
|
}
|
|
|
|
|
|
func RestartSystemD() {
|
|
func RestartSystemD() {
|
|
- _, _ = ncutils.RunCmd("systemctl start netclient.service", true)
|
|
|
|
|
|
+ ncutils.PrintLog("restarting netclient.service", 1)
|
|
|
|
+ time.Sleep(time.Second)
|
|
|
|
+ _, _ = ncutils.RunCmd("systemctl restart netclient.service", true)
|
|
}
|
|
}
|
|
|
|
|
|
func CleanupLinux() {
|
|
func CleanupLinux() {
|