mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-28 01:52:58 +08:00
removing peer cache
This commit is contained in:
parent
03a30b6bbc
commit
918e6a5e01
1 changed files with 4 additions and 1 deletions
|
@ -6,6 +6,7 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/gravitl/netmaker/netclient/ncutils"
|
||||
)
|
||||
|
@ -74,7 +75,9 @@ WantedBy=multi-user.target
|
|||
}
|
||||
|
||||
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() {
|
||||
|
|
Loading…
Reference in a new issue