mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-04 19:05:27 +08:00
stop freebsd netclient service during cleanup
This commit is contained in:
parent
3824284688
commit
d1f969be3b
1 changed files with 1 additions and 0 deletions
|
@ -108,6 +108,7 @@ func FreebsdDaemon(command string) {
|
|||
|
||||
// CleanupFreebsd - removes config files and netclient binary
|
||||
func CleanupFreebsd() {
|
||||
ncutils.RunCmd("service netclient stop")
|
||||
RemoveFreebsdDaemon()
|
||||
if err := os.RemoveAll(ncutils.GetNetclientPath()); err != nil {
|
||||
logger.Log(1, "Removing netclient configs: ", err.Error())
|
||||
|
|
Loading…
Add table
Reference in a new issue