diff --git a/README.rst b/README.rst index 10c68ad..d7aead2 100644 --- a/README.rst +++ b/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 """""" diff --git a/cathead/scheduler.py b/cathead/scheduler.py index fcffd44..97217e7 100644 --- a/cathead/scheduler.py +++ b/cathead/scheduler.py @@ -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): diff --git a/example_config.py b/example_config.py index 4e123bc..2123caa 100644 --- a/example_config.py +++ b/example_config.py @@ -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',