Explicitly load the config at confd startup
authorIustin Pop <iustin@google.com>
Wed, 16 Jan 2013 14:28:40 +0000 (15:28 +0100)
committerIustin Pop <iustin@google.com>
Mon, 21 Jan 2013 11:24:58 +0000 (12:24 +0100)
commit3190ad64358982b352b37a84d3bac406afa3a906
treecab3d3be6cdf95edfa2bae0f83c2aac2161552c4
parent525f0f984eec8905b4dbf2b744db2c2882b84787
Explicitly load the config at confd startup

Currently, confd main function doesn't load the config, but simply
forks the individual timer threads, which will—as a side effect-also
load the configuration as soon as they start.

However, this makes codes to the startup more complex, so let's
explicitly (try to) load the configuration as first thing.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
src/Ganeti/Confd/Server.hs