diff --git a/templates/usr/local/lib/systemd/system/cleanup_daemon_@.service.j2 b/templates/usr/local/lib/systemd/system/cleanup_daemon_@.service.j2 index 49bb34ed71a73bd3d89f71e04dad6a359e4aec83..2ed353b23a76cb038431f80986e1f8e6cb53aaf5 100644 --- a/templates/usr/local/lib/systemd/system/cleanup_daemon_@.service.j2 +++ b/templates/usr/local/lib/systemd/system/cleanup_daemon_@.service.j2 @@ -7,6 +7,9 @@ ExecStart=/bin/bash -c 'find "/mnt/lza_repair_%i/validate/results/" -type f -mti ExecReload=/bin/kill -HUP $MAINPID KillMode=process Restart=on-failure +# The default limit is to allow 5 restarts in a 10sec period. +StartLimitIntervalSec=30 +StartLimitBurst=10 User={{ vault_service_user }} Group={{ vault_service_group }} Type=simple diff --git a/templates/usr/local/lib/systemd/system/validation_daemon_@.service.j2 b/templates/usr/local/lib/systemd/system/validation_daemon_@.service.j2 index a36d60ac5388e61df032163267171d812d383277..0320af2a5abe22dde59b644a805c9da06ddb96a6 100644 --- a/templates/usr/local/lib/systemd/system/validation_daemon_@.service.j2 +++ b/templates/usr/local/lib/systemd/system/validation_daemon_@.service.j2 @@ -13,6 +13,9 @@ ExecStart=/usr/local/bin/validate_workflow.sh \ ExecReload=/bin/kill -HUP $MAINPID KillMode=control-group Restart=on-failure +# The default limit is to allow 5 restarts in a 10sec period. +StartLimitIntervalSec=30 +StartLimitBurst=10 User={{ vault_service_user }} Group={{ vault_service_group }} Type=simple