summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2-server
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-08-22 19:19:28 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-08-22 19:19:28 +0000
commite14a503bbab0421ff3cc1fbeedf50ce99317d1e9 (patch)
tree0baa8626544624b83218ce0f1a2172c60cdc9519 /src/sbin/bcfg2-server
parent0116c890c13934f272a198927f736e641c7b343d (diff)
downloadbcfg2-e14a503bbab0421ff3cc1fbeedf50ce99317d1e9.tar.gz
bcfg2-e14a503bbab0421ff3cc1fbeedf50ce99317d1e9.tar.bz2
bcfg2-e14a503bbab0421ff3cc1fbeedf50ce99317d1e9.zip
Catch key errors (Resolves Ticket #59)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2087 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin/bcfg2-server')
-rwxr-xr-xsrc/sbin/bcfg2-server5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-server b/src/sbin/bcfg2-server
index 57c3fe496..440ab53c6 100755
--- a/src/sbin/bcfg2-server
+++ b/src/sbin/bcfg2-server
@@ -221,7 +221,10 @@ if __name__ == '__main__':
SSETUP = Bcfg2.Options.OptionParser('bcfg2', OPTINFO).parse()
if SSETUP['daemon']:
daemonize(SSETUP['daemon'])
- BSERV = Bcfg2Serv(SSETUP)
+ try:
+ BSERV = Bcfg2Serv(SSETUP)
+ except:
+ critical_error("Failed to setup server; probably a key problem")
while not BSERV.shut:
try:
BSERV.serve_forever()