summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sbin/Bcfg2Server6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sbin/Bcfg2Server b/src/sbin/Bcfg2Server
index 6de61a0a4..0755eb882 100644
--- a/src/sbin/Bcfg2Server
+++ b/src/sbin/Bcfg2Server
@@ -30,7 +30,11 @@ class BcfgServer(Server):
generators = split(c.get('server','generators'),',')
structures = split(c.get('server', 'structures'),',')
mpath = c.get('server','metadata')
- self.core = Core(repo, structures, generators)
+ try:
+ self.core = Core(repo, structures, generators)
+ except IOError, e:
+ syslog(LOG_ERR, "Failed to connect to FAM")
+ self.shut = 1
self.metadata = MetadataStore("%s/metadata.xml"%(mpath), self.core.fam)
self.__progress__()