Feature: Add periodic device reboot every 6 hours for stability
This commit is contained in:
7
main.go
7
main.go
@@ -125,6 +125,13 @@ func main() {
|
||||
logCleanupWorker(shutdown)
|
||||
}()
|
||||
|
||||
// Start device manager goroutine for periodic device maintenance
|
||||
wg.Add(1)
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
deviceManager(shutdown, *dryRun)
|
||||
}()
|
||||
|
||||
// Wait for all goroutines to finish
|
||||
wg.Wait()
|
||||
logInfo("shutdown", "All goroutines stopped, exiting", nil)
|
||||
|
||||
Reference in New Issue
Block a user