added freebsd daemon

This commit is contained in:
Matthew R. Kasun
2022-02-08 22:06:41 -05:00
parent 4f81e0cebc
commit a545643172
4 changed files with 148 additions and 0 deletions

View File

@@ -34,6 +34,12 @@ func Join(cfg config.ClientConfig, privateKey string) error {
if err != nil {
ncutils.PrintLog("error removing services: "+err.Error(), 1)
}
if ncutils.IsFreebsd() {
err = daemon.RemoveFreebsdDaemon()
}
if err != nil {
ncutils.PrintLog("error removing services: "+err.Error(), 1)
}
}
} else {
ncutils.PrintLog("success", 0)