From a33c13eb041710d4bc382315030eb33a4bac55d2 Mon Sep 17 00:00:00 2001 From: phil Date: Fri, 24 Nov 2023 17:39:00 +0100 Subject: [PATCH] Fix restart configuration --- templates/systemd/php-fpm@.service.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/systemd/php-fpm@.service.j2 b/templates/systemd/php-fpm@.service.j2 index 8222957..6e16267 100644 --- a/templates/systemd/php-fpm@.service.j2 +++ b/templates/systemd/php-fpm@.service.j2 @@ -9,6 +9,8 @@ Description=The PHP FastCGI Process Manager for %I Documentation=man:php-fpm{{ php_version.stdout }}(8) After=network.target Requires=php-fpm@%i.socket +StartLimitInterval=10 +StartLimitBurst=10 [Service] User={{ php_fpm_user | default('%i') }} @@ -23,8 +25,6 @@ ExecReload=/bin/kill -USR2 $MAINPID KillMode=process Restart=on-failure RestartSec=30s -StartLimitInterval=10 -StartLimitBurst=10 # Hardening # https://github.com/php/php-src/blob/master/sapi/fpm/php-fpm.service.in