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 After=syslog.target network.target
[Service] [Service]
Restart=on-failure
Type=notify Type=notify
PIDFile=/run/php-fpm/php-fpm.pid PIDFile=/run/php-fpm/php-fpm.pid
PrivateTmp=true PrivateTmp=true

View File

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