From 419816434ba3b5521ec925d786172a7a879c4f3a Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 5 Feb 2018 07:18:12 +0100 Subject: [PATCH] On startup generate files once Signed-off-by: Knut Ahlers --- cron_generate.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cron_generate.go b/cron_generate.go index 6d69e42..8ca7601 100644 --- a/cron_generate.go +++ b/cron_generate.go @@ -13,6 +13,8 @@ func init() { c := cron.New() c.AddFunc("0 * * * * *", generateZonefiles) c.Start() + + go generateZonefiles() } func generateZonefiles() {