|
@@ -108,7 +108,7 @@ func FreebsdDaemon(command string) {
|
|
|
|
|
|
// CleanupFreebsd - removes config files and netclient binary
|
|
// CleanupFreebsd - removes config files and netclient binary
|
|
func CleanupFreebsd() {
|
|
func CleanupFreebsd() {
|
|
- ncutils.RunCmd("service netclient stop")
|
|
|
|
|
|
+ ncutils.RunCmd("service netclient stop", false)
|
|
RemoveFreebsdDaemon()
|
|
RemoveFreebsdDaemon()
|
|
if err := os.RemoveAll(ncutils.GetNetclientPath()); err != nil {
|
|
if err := os.RemoveAll(ncutils.GetNetclientPath()); err != nil {
|
|
logger.Log(1, "Removing netclient configs: ", err.Error())
|
|
logger.Log(1, "Removing netclient configs: ", err.Error())
|