2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 19:40:12 +00:00

Merge pull request #3 from jjohnson42/master

Cleanup pid on abnormal exit
This commit is contained in:
Jarrod Johnson 2015-07-28 10:55:18 -04:00
commit 5f1ddc7f84

View File

@ -129,8 +129,17 @@ def run():
configfile = "/etc/confluent/service.cfg"
config = ConfigParser.ConfigParser()
config.read(configfile)
_initsecurity(config)
confluentcore.load_plugins()
try:
_initsecurity(config)
except:
sys.stderr.write("Error unlocking credential store\n")
doexit()
sys.exit(1)
try:
confluentcore.load_plugins()
except:
doexit()
raise
_daemonize()
_updatepidfile()
auth.init_auth()