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