summaryrefslogtreecommitdiff
path: root/service/reload/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/reload/config.go')
-rw-r--r--service/reload/config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/service/reload/config.go b/service/reload/config.go
index f33b5081..efc71972 100644
--- a/service/reload/config.go
+++ b/service/reload/config.go
@@ -62,5 +62,11 @@ func (c *Config) Valid() error {
return errors.New("too short interval")
}
+ if c.Services == nil {
+ return errors.New("should add at least 1 service")
+ } else if len(c.Services) == 0 {
+ return errors.New("service initialized, however, no config added")
+ }
+
return nil
}