mirror of
https://github.com/safing/portmaster
synced 2025-09-01 10:09:11 +00:00
[cmds] Trigger instance shutdown on external events
This commit is contained in:
parent
260449e59b
commit
3b5556b7bb
1 changed files with 5 additions and 1 deletions
|
@ -123,9 +123,13 @@ waitSignal:
|
|||
}
|
||||
}
|
||||
|
||||
// Wait for shutdown to finish.
|
||||
// Trigger shutdown.
|
||||
s.instance.Shutdown()
|
||||
|
||||
// Notify the service host that service is in shutting down state.
|
||||
changes <- svc.Status{State: svc.StopPending}
|
||||
|
||||
// Wait for shutdown to finish.
|
||||
// Catch signals during shutdown.
|
||||
// Force exit after 5 interrupts.
|
||||
forceCnt := 5
|
||||
|
|
Loading…
Add table
Reference in a new issue