From 5e49d6d4a3103239f041270160b848703ba84227 Mon Sep 17 00:00:00 2001 From: Benedikt Rudolph Date: Mon, 29 Oct 2018 12:02:27 +0100 Subject: [PATCH] Fix default config path Instead of /etc/birdwatcher the config file location was assumed to be in etc/birdwatcher relative to the working directory at execution. --- birdwatcher.go | 2 +- etc/{ecix => birdwatcher}/birdwatcher.conf | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename etc/{ecix => birdwatcher}/birdwatcher.conf (100%) diff --git a/birdwatcher.go b/birdwatcher.go index efe9710..e1b8bc3 100644 --- a/birdwatcher.go +++ b/birdwatcher.go @@ -128,7 +128,7 @@ func (m *MyLogger) Write(p []byte) (n int, err error) { func main() { bird6 := flag.Bool("6", false, "Use bird6 instead of bird") workerPoolSize := flag.Int("worker-pool-size", 8, "Number of go routines used to parse routing tables concurrently") - configfile := flag.String("config", "etc/birdwatcher/birdwatcher.conf", "Configuration file location") + configfile := flag.String("config", "/etc/birdwatcher/birdwatcher.conf", "Configuration file location") flag.Parse() bird.WorkerPoolSize = *workerPoolSize diff --git a/etc/ecix/birdwatcher.conf b/etc/birdwatcher/birdwatcher.conf similarity index 100% rename from etc/ecix/birdwatcher.conf rename to etc/birdwatcher/birdwatcher.conf