mirror of
https://github.com/netbirdio/service.git
synced 2026-05-22 17:08:14 -07:00
service(darwin): fix status regression (#273)
Co-authored-by: Arran Walker <ajwalker@gitlab.com>
This commit is contained in:
co-authored by
Arran Walker
parent
3b7119afcd
commit
82b10ec284
+1
-1
@@ -186,7 +186,7 @@ func (s *darwinLaunchdService) Uninstall() error {
|
||||
func (s *darwinLaunchdService) Status() (Status, error) {
|
||||
exitCode, out, err := runWithOutput("launchctl", "list", s.Name)
|
||||
if exitCode == 0 && err != nil {
|
||||
if !strings.Contains(err.Error(), "failed with StandardError") {
|
||||
if !strings.Contains(err.Error(), "failed with stderr") {
|
||||
return StatusUnknown, err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user