mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +00:00
Merge pull request #3 from jjohnson42/master
Cleanup pid on abnormal exit
This commit is contained in:
commit
5f1ddc7f84
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user