Always restart service
This commit is contained in:
parent
a33c13eb04
commit
d8b0c89506
1 changed files with 3 additions and 3 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue