diff --git a/.gitignore b/.gitignore index 6185b707..a1c4c024 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,4 @@ controllers/data/ data/ .vscode/ .idea/ - +netmaker.exe diff --git a/netclient/daemon/macos.go b/netclient/daemon/macos.go index b8b59a20..21322bf9 100644 --- a/netclient/daemon/macos.go +++ b/netclient/daemon/macos.go @@ -96,8 +96,8 @@ func MacDaemonString() string { /usr/local/bin/netclient daemon - StandardOutPath/etc/netclient/com.gravitl.netclient.log - StandardErrorPath/etc/netclient/com.gravitl.netclient.log + StandardOutPath/var/log/com.gravitl.netclient.log + StandardErrorPath/var/log/com.gravitl.netclient.log RunAtLoad KeepAlive diff --git a/netclient/functions/join.go b/netclient/functions/join.go index 14a72aa9..bfaf14c3 100644 --- a/netclient/functions/join.go +++ b/netclient/functions/join.go @@ -108,14 +108,6 @@ func JoinNetwork(cfg *config.ClientConfig, privateKey string) error { } } - // if ncutils.IsLinux() { - // _, err := exec.LookPath("resolvectl") - // if err != nil { - // logger.Log("resolvectl not present", 2) - // logger.Log("unable to configure DNS automatically, disabling automated DNS management", 2) - // cfg.Node.DNSOn = "no" - // } - // } if ncutils.IsFreeBSD() { cfg.Node.UDPHolePunch = "no" } @@ -195,14 +187,14 @@ func JoinNetwork(cfg *config.ClientConfig, privateKey string) error { _ = UpdateLocalListenPort(cfg) - if cfg.Daemon != "off" { + if cfg.Daemon == "install" || ncutils.IsFreeBSD() { err = daemon.InstallDaemon(cfg) if err != nil { return err - } else { - daemon.Restart() } } + + daemon.Restart() return nil } diff --git a/netmaker.exe b/netmaker.exe deleted file mode 100644 index a5504547..00000000 Binary files a/netmaker.exe and /dev/null differ