summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2-server
diff options
context:
space:
mode:
Diffstat (limited to 'src/sbin/bcfg2-server')
-rwxr-xr-xsrc/sbin/bcfg2-server6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-server b/src/sbin/bcfg2-server
index 8e698e5ac..2b0d71d55 100755
--- a/src/sbin/bcfg2-server
+++ b/src/sbin/bcfg2-server
@@ -83,7 +83,11 @@ class Bcfg2Serv(Bcfg2.Server.Component.Component):
request_queue_size = 15
def __init__(self, setup):
- Bcfg2.Server.Component.Component.__init__(self, setup)
+ try:
+ Bcfg2.Server.Component.Component.__init__(self, setup)
+ except Bcfg2.Server.Component.ComponentInitError:
+ self.shut = True
+ return
self.shut = False
# set shutdown handlers for sigint and sigterm
signal.signal(signal.SIGINT, self.start_shutdown)