Browse Source

php-fpm: add restart on failure

master
Jörg Thalheim 7 years ago
parent
commit
ca86e17290
  1. 1
      roles/php/files/php-fpm.service
  2. 3
      roles/php/files/php-fpm.socket

1
roles/php/files/php-fpm.service

@ -3,6 +3,7 @@ Description=The PHP FastCGI Process Manager
After=syslog.target network.target
[Service]
Restart=on-failure
Type=notify
PIDFile=/run/php-fpm/php-fpm.pid
PrivateTmp=true

3
roles/php/files/php-fpm.socket

@ -1,5 +1,8 @@
[Socket]
ListenStream=9000
[Service]
Restart=on-failure
[Install]
WantedBy=sockets.target
Loading…
Cancel
Save