Skip to content

Commit

Permalink
Add Restart=on-failure to php-fpm service
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Jul 4, 2024
1 parent c1d88b6 commit 8b69266
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/php-fpm.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ExecStart=/usr/sbin/php-fpmPHP_VERSION --nodaemonize --fpm-config /etc/php/PHP_V
ExecStartPost=-/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/PHP_VERSION/fpm/pool.d/www.conf NO_DOT
ExecStopPost=-/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/PHP_VERSION/fpm/pool.d/www.conf NO_DOT
ExecReload=/bin/kill -USR2 $MAINPID
Restart=on-failure

[Install]
WantedBy=multi-user.target

0 comments on commit 8b69266

Please sign in to comment.