Fix restart configuration
This commit is contained in:
parent
872179cbcd
commit
a33c13eb04
1 changed files with 2 additions and 2 deletions
|
@ -9,6 +9,8 @@ Description=The PHP FastCGI Process Manager for %I
|
||||||
Documentation=man:php-fpm{{ php_version.stdout }}(8)
|
Documentation=man:php-fpm{{ php_version.stdout }}(8)
|
||||||
After=network.target
|
After=network.target
|
||||||
Requires=php-fpm@%i.socket
|
Requires=php-fpm@%i.socket
|
||||||
|
StartLimitInterval=10
|
||||||
|
StartLimitBurst=10
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User={{ php_fpm_user | default('%i') }}
|
User={{ php_fpm_user | default('%i') }}
|
||||||
|
@ -23,8 +25,6 @@ ExecReload=/bin/kill -USR2 $MAINPID
|
||||||
KillMode=process
|
KillMode=process
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=30s
|
RestartSec=30s
|
||||||
StartLimitInterval=10
|
|
||||||
StartLimitBurst=10
|
|
||||||
|
|
||||||
# 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
|
||||||
|
|
Loading…
Reference in a new issue