php-fpm: add restart on failure

This commit is contained in:
Jörg Thalheim 2014-09-17 13:57:56 +02:00
parent 6fcd16743f
commit ca86e17290
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

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