diff --git a/gokrazy.go b/gokrazy.go index 279a7b2..a961b66 100644 --- a/gokrazy.go +++ b/gokrazy.go @@ -14,6 +14,7 @@ import ( func main() { gokrazy.WaitForClock() + time.Sleep(30 * time.Second) if !wait.New(wait.WithDeadline(time.Minute), wait.WithWait(time.Second), wait.WithBreak(time.Second)).Do([]string{"www.comics.org:443"}) { log.Println("Failed to connect to www.comics.org") os.Exit(1) // Exit code 1 will cause gokrazy to restart the service