From f1507dcc4fa6ab1835e2864cc4fa19dd363703ba Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Wed, 22 Feb 2017 05:33:43 -0500 Subject: [PATCH] Added validators for default values in main config --- cli/cli.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/cli.go b/cli/cli.go index f864830..b513e92 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -247,8 +247,11 @@ func validateConfig() { {DEFAULTS_RESPAWN_INTERVAL, knf.Empty, nil}, {DEFAULTS_KILL_TIMEOUT, knf.Empty, nil}, + {DEFAULTS_NPROC, knf.Less, 0}, + {DEFAULTS_NOFILE, knf.Less, 0}, {DEFAULTS_RESPAWN_COUNT, knf.Less, 0}, {DEFAULTS_RESPAWN_INTERVAL, knf.Less, 0}, + {DEFAULTS_KILL_TIMEOUT, knf.Less, 0}, {MAIN_RUN_USER, userChecker, nil}, {MAIN_RUN_GROUP, groupChecker, nil},