Always restart service

This commit is contained in:
phil 2023-11-24 17:39:29 +01:00
parent a33c13eb04
commit d8b0c89506

View file

@ -23,8 +23,8 @@ Environment="FPM_SOCKET_PATH=/run/php/php-fpm-%i.sock"
ExecStart=/usr/sbin/php-fpm{{ php_version.stdout }} --nodaemonize --fpm-config {{ php_fpm_pool_config_file }}
ExecReload=/bin/kill -USR2 $MAINPID
KillMode=process
Restart=on-failure
RestartSec=30s
Restart=always
RestartSec=15s
# Hardening
# https://github.com/php/php-src/blob/master/sapi/fpm/php-fpm.service.in
@ -42,8 +42,8 @@ SystemCallArchitectures=native
SystemCallErrorNumber=EPERM
SystemCallFilter=@system-service
# Resources
{% if php_fpm_cpu_quota is defined %}
# Resources
CPUQuota={{ php_fpm_cpu_quota }}
{% endif %}
{% if php_fpm_memory_high is defined %}