yevgenko / cookbook-php-fpm

Installs/Configures php-fpm
http://community.opscode.com/cookbooks/php-fpm
Apache License 2.0
68 stars 117 forks source link

Always need to restart php-fpm? #14

Closed ianneub closed 11 years ago

ianneub commented 11 years ago

Is there a reason that php-fpm needs to restart on every chef run? On a default chef client/server install this will restart php-fpm every 30 minutes.

The relevant code: https://github.com/yevgenko/cookbook-php-fpm/blob/master/recipes/default.rb#L116

Thanks for the great cookbook btw!

yevgenko commented 11 years ago

Good point, if I correctly rmbr, originally I faced some problems on some distros with "start" only action, will need to re-check. Tnx.

ianneub commented 11 years ago

I just hit an issue where changing an attribute that was used inside a fpm_pool definition did not restart the php-fpm server. (I rewrote the cookbook that I am using to remove the :restarts action from the service).

Were you relying on the service restarting each run to do that?

What if we were to change the recipe a bit and remove the :restarts action from the service, and then add notifications to the different templates?

yevgenko commented 11 years ago

fixed in #21