Skip to content

Cookbook support for custom Service names. #104

Open
@pazmarianoj

Description

@pazmarianoj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions