Browse Source

removing peer cache

afeiszli 3 years ago
parent
commit
918e6a5e01
1 changed files with 4 additions and 1 deletions
  1. 4 1
      netclient/daemon/systemd.go

+ 4 - 1
netclient/daemon/systemd.go

@@ -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() {