diff --git a/conf.go b/conf.go index a5021da..ae45663 100644 --- a/conf.go +++ b/conf.go @@ -75,6 +75,9 @@ func confInit() { // rulefiles for _, ruleFile := range conf.RuleFile { + if !path.IsAbs(ruleFile) { + ruleFile = path.Join(flag.ConfDir(), ruleFile) + } rule, err := rule.NewConfFromFile(ruleFile) if err != nil { log.Fatal(err)