Configuration - Control over command timeouts

This commit is contained in:
Emmanuel BENOîT 2021-12-05 18:12:13 +01:00
parent dad5a17d36
commit 44eb5c5356
3 changed files with 61 additions and 14 deletions

View file

@ -1,6 +1,9 @@
# fetchcert configuration example / documentation
# ===============================================
# Default command execution timeout (seconds). 5 seconds is the default.
command_timeout: 5
# The UNIX socket the main program listens on. May be omitted if the program
# is intended to run in standalone mode only.
socket:
@ -63,6 +66,11 @@ handlers:
- /usr/sbin/apache2ctl configtest
- /usr/sbin/apache2ctl graceful
# Handler command timeouts. If this section is missing, or if no entry is
# present for a handler, the default command timeout will be used.
handler_timeouts:
apache: 1
# Certificates that must be updated
certificates:
@ -101,6 +109,10 @@ certificates:
- /some/other/file.pem
# Define what must be done after an update.
after_update:
# Command execution timeout for pre- and post-commands. If this entry is
# missing, the default from command_timeout above will be used. This does
# not affect handlers.
command_timeout: 1
# Commands to execute before handlers are run. The order of the commands
# is respected. If a command fails to run, execution stops.
pre_commands: []