Feature: Add periodic device reboot every 6 hours for stability

This commit is contained in:
2025-05-22 08:02:44 -07:00
parent e9f9003f1b
commit c6f9c7e560
3 changed files with 90 additions and 4 deletions

View File

@@ -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)