stop freebsd netclient service during cleanup

This commit is contained in:
Matthew R. Kasun 2022-08-29 08:41:00 -04:00
parent 3824284688
commit d1f969be3b

View file

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