moved files

This commit is contained in:
2021-01-31 22:31:08 +01:00
parent 9adc685a73
commit 0336002980
7 changed files with 29 additions and 137 deletions

24
cmd/cooldns.go Normal file
View File

@@ -0,0 +1,24 @@
package main
import (
"flag"
"log"
"os"
"os/signal"
"syscall"
cooldns "git.kapelle.org/niklas/cool-dns/internal"
)
func main() {
configPath := flag.String("c", "/etc/cool-dns/config.yaml", "path to the config file")
flag.Parse()
cooldns.Start(*configPath)
sig := make(chan os.Signal)
signal.Notify(sig, syscall.SIGINT, syscall.SIGTERM)
s := <-sig
log.Printf("Signal (%v) received, stopping\n", s)
os.Exit(0)
}