From aaf493714b888eea36614e9335f88bdba9ddcb7d Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 12 Oct 2019 22:05:46 +0200 Subject: [PATCH] Service fix for Catalina --- vendor/github.com/kardianos/service/service_unix.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vendor/github.com/kardianos/service/service_unix.go b/vendor/github.com/kardianos/service/service_unix.go index 58a3f208..1b4be3bb 100644 --- a/vendor/github.com/kardianos/service/service_unix.go +++ b/vendor/github.com/kardianos/service/service_unix.go @@ -7,6 +7,7 @@ package service import ( + "bytes" "fmt" "io" "io/ioutil" @@ -99,7 +100,7 @@ func runCommand(command string, readStdout bool, arguments ...string) (int, stri // so check for emtpy stderr if command == "launchctl" { slurp, _ := ioutil.ReadAll(stderr) - if len(slurp) > 0 { + if len(slurp) > 0 && !bytes.HasSuffix(slurp, []byte("Operation now in progress\n")) { return 0, "", fmt.Errorf("%q failed with stderr: %s", command, slurp) } }