cookbook-php-fpm icon indicating copy to clipboard operation
cookbook-php-fpm copied to clipboard

Cookbook support for custom Service names.

Open pazmarianoj opened this issue 6 years ago • 0 comments

After installing php70-fpm in CentOS 7, I realized that the default name for the service is not 'php-fpm' but 'php-fpm-7.0'.

With that in mind, the 'notifies' sentences in php-fpm/definitions/php_fpm_pool.rb:26 causes the cookbook to fail with the message:

" resource template[/etc/php-fpm.d/default.conf] is configured to notify resource service[php-fpm] with action restart, but service[php-fpm] cannot be found in the resource collection. template[/etc/php-fpm.d/default.conf] is defined in /var/chef/runs/d9de713f-ec45-4cd7-8033-25af29433649/local-mode-cache/cache/cookbooks/php-fpm/definitions/php_fpm_pool.rb:26:in `block in from_file'"

Coudn't find a way to change the default service name, and also the service name is hard coded in this part of the cookbook.

pazmarianoj avatar Mar 27 '18 21:03 pazmarianoj