From 8005911ff6922d896a4a34192a4b0b0d5ade002f Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 28 Jun 2016 15:10:50 -0400 Subject: Syncronization interval now set on config save. (#3421) --- utils/config.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'utils') diff --git a/utils/config.go b/utils/config.go index 79d1d8e4b..60d09dee3 100644 --- a/utils/config.go +++ b/utils/config.go @@ -186,6 +186,12 @@ func LoadConfig(fileName string) { Cfg = &config ClientCfg = getClientConfig(Cfg) + + // Actions that need to run every time the config is loaded + if ldapI := einterfaces.GetLdapInterface(); ldapI != nil { + // This restarts the job if nessisary (works for config reloads) + ldapI.StartLdapSyncJob() + } } func getClientConfig(c *model.Config) map[string]string { -- cgit v1.2.3-1-g7c22