fix: Support running as Windows Service within containers [0.30.x] (#2009)

This commit is contained in:
Jan-Otto Kröpke
2025-04-24 10:57:58 +02:00
committed by GitHub
parent db60c78f32
commit 8bae1abe20
2 changed files with 10 additions and 11 deletions

View File

@@ -38,7 +38,7 @@ var (
stopCh = make(chan struct{})
// serviceManagerFinishedCh is a channel to send a signal to the main function that the service manager has stopped the service.
serviceManagerFinishedCh = make(chan struct{})
serviceManagerFinishedCh = make(chan struct{}, 1)
)
// IsService variable declaration allows initiating time-sensitive components like registering the Windows service