bastion 0.63.1
ci / personal-data (push) Successful in 4s
ci / test (push) Successful in 4m58s
ci / fuzz (push) Successful in 3m33s

This commit is contained in:
Privatae
2026-11-03 22:56:18 +00:00
parent 2043fa5e9e
commit 48899b41a9
78 changed files with 10366 additions and 307 deletions
+10 -1
View File
@@ -158,7 +158,7 @@ func (bastionService) Execute(_ []string, r <-chan svc.ChangeRequest, s chan<- s
s <- c.CurrentStatus
case svc.Stop, svc.Shutdown:
s <- svc.Status{State: svc.StopPending}
requestShutdown()
requestShutdownFor(shutdownFromService)
select {
case <-done:
case <-time.After(20 * time.Second):
@@ -440,3 +440,12 @@ func printSystemServiceStatus() error {
}
return nil
}
// systemServiceRunning: the service runs now. A service waiting for its first
// pairing has no console yet, and still serves a pairing written beside it
// within moments (runSystemService waitForPairing), so `pair` asks this as
// well as the console.
func systemServiceRunning() bool {
pid, err := bastionServicePID()
return err == nil && pid != 0
}