Fix config value in example_config.py
Update README with ctrl-c issue and wrap callback with try/catch
This commit is contained in:
parent
4bd60c6a41
commit
c153a3a749
11
README.rst
11
README.rst
@ -65,7 +65,7 @@ Running
|
||||
construction. e.g. ``SelfSignDriver(**drivers['selfsign'])``
|
||||
|
||||
The *actions* section contains actions to perform on different events. So
|
||||
far the possible events are:
|
||||
far the possible events are
|
||||
|
||||
- Successful refresh of a certificate
|
||||
- Failure to refresh a certificate
|
||||
@ -99,6 +99,15 @@ with. This can be done using ::
|
||||
|
||||
openssl genrsa 2048 > ca.key
|
||||
|
||||
Known Issues
|
||||
"""""""""""
|
||||
|
||||
Ctrl-C doens't work
|
||||
|
||||
Currently you cannot interrupt the cathead process due to APScheduler not
|
||||
supporting this. When you run ``cathead config.py`` in the terminal you have to
|
||||
termiate the process with ``Ctrl-z`` and ``kill %1`` (or whatever job it was).
|
||||
|
||||
Naming
|
||||
""""""
|
||||
|
||||
|
@ -50,7 +50,10 @@ class Scheduler(object):
|
||||
self._scheduler.add_job(watcher.check_and_update, 'interval',
|
||||
seconds=new_interval, id=key_path)
|
||||
if callback:
|
||||
callback()
|
||||
try:
|
||||
callback()
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
return success_callback
|
||||
|
||||
def _create_failure_callback(self, key_path):
|
||||
|
@ -19,7 +19,7 @@ CONF = {
|
||||
{
|
||||
'name': 'selfsign',
|
||||
'driver': 'cathead.drivers.selfsign.SelfSignDriver',
|
||||
'ca_key': 'ca.p.key',
|
||||
'ca_key_file': 'ca.p.key',
|
||||
},
|
||||
{
|
||||
'name': 'eca',
|
||||
|
Loading…
x
Reference in New Issue
Block a user