Skip to content

Commit 852c7da

Browse files
committed
launchd: do not fail bootout if service not found
Signed-off-by: Victoria Dye <[email protected]>
1 parent 2f8c504 commit 852c7da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/daemon/launchd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (l *launchd) bootoutFile(domain string, filename string) error {
142142
return err
143143
}
144144

145-
if exitCode != 0 {
145+
if exitCode != 0 && exitCode != LaunchdServiceNotFoundErrorCode {
146146
return fmt.Errorf("'launchctl bootout' exited with status %d", exitCode)
147147
}
148148

0 commit comments

Comments
 (0)