mirror of
https://github.com/Luzifer/dns.git
synced 2024-12-23 03:11:20 +00:00
On startup generate files once
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
73fc71df2e
commit
419816434b
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,8 @@ func init() {
|
||||||
c := cron.New()
|
c := cron.New()
|
||||||
c.AddFunc("0 * * * * *", generateZonefiles)
|
c.AddFunc("0 * * * * *", generateZonefiles)
|
||||||
c.Start()
|
c.Start()
|
||||||
|
|
||||||
|
go generateZonefiles()
|
||||||
}
|
}
|
||||||
|
|
||||||
func generateZonefiles() {
|
func generateZonefiles() {
|
||||||
|
|
Loading…
Reference in a new issue