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 }}
|
ExecStart=/usr/sbin/php-fpm{{ php_version.stdout }} --nodaemonize --fpm-config {{ php_fpm_pool_config_file }}
|
||||||
ExecReload=/bin/kill -USR2 $MAINPID
|
ExecReload=/bin/kill -USR2 $MAINPID
|
||||||
KillMode=process
|
KillMode=process
|
||||||
Restart=on-failure
|
Restart=always
|
||||||
RestartSec=30s
|
RestartSec=15s
|
||||||
|
|
||||||
# Hardening
|
# Hardening
|
||||||
# https://github.com/php/php-src/blob/master/sapi/fpm/php-fpm.service.in
|
# https://github.com/php/php-src/blob/master/sapi/fpm/php-fpm.service.in
|
||||||
|
@ -42,8 +42,8 @@ SystemCallArchitectures=native
|
||||||
SystemCallErrorNumber=EPERM
|
SystemCallErrorNumber=EPERM
|
||||||
SystemCallFilter=@system-service
|
SystemCallFilter=@system-service
|
||||||
|
|
||||||
# Resources
|
|
||||||
{% if php_fpm_cpu_quota is defined %}
|
{% if php_fpm_cpu_quota is defined %}
|
||||||
|
# Resources
|
||||||
CPUQuota={{ php_fpm_cpu_quota }}
|
CPUQuota={{ php_fpm_cpu_quota }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if php_fpm_memory_high is defined %}
|
{% if php_fpm_memory_high is defined %}
|
||||||
|
|
Loading…
Reference in a new issue