cmd/tailscaled: fix up install-system-daemon on darwin, add uninstall too

Tangentially related to #987, #177, #594, #925, #505
This commit is contained in:
Brad Fitzpatrick
2021-02-14 21:11:06 -08:00
parent 52e24aa966
commit d7569863b5
3 changed files with 61 additions and 16 deletions

View File

@@ -33,6 +33,8 @@ var debugArgs struct {
derpCheck string
}
var debugModeFunc = debugMode // so it can be addressable
func debugMode(args []string) error {
fs := flag.NewFlagSet("debug", flag.ExitOnError)
fs.BoolVar(&debugArgs.monitor, "monitor", false, "If true, run link monitor forever. Precludes all other options.")