Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Commit

Permalink
Move service related into 'php-fpm::service'.
Browse files Browse the repository at this point in the history
Remove ':nothing' since it's the default!
  • Loading branch information
till committed Sep 24, 2012
1 parent 0463e4e commit 0a09fa0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
14 changes: 0 additions & 14 deletions php-fpm/recipes/configure.rb
Expand Up @@ -94,20 +94,6 @@
end
end

template "/etc/default/php-fpm" do
source "default.erb"
mode "0644"
notifies :restart, resources(:service => "php-fpm"), :delayed
end

template "/etc/init.d/php-fpm" do
mode "0755"
source "init.d.php-fpm.erb"
owner node["php-fpm"][:user]
group node["php-fpm"][:group]
notifies :restart, resources(:service => "php-fpm"), :delayed
end

template "/etc/logrotate.d/php" do
source "logrotate.erb"
mode "0644"
Expand Down
15 changes: 13 additions & 2 deletions php-fpm/recipes/service.rb
@@ -1,5 +1,16 @@
template "/etc/default/php-fpm" do
source "default.erb"
mode "0644"
end

template "/etc/init.d/php-fpm" do
mode "0755"
source "init.d.php-fpm.erb"
owner node["php-fpm"][:user]
group node["php-fpm"][:group]
end

service "php-fpm" do
service_name "php-fpm"
supports [:start, :status, :restart]
action :nothing
supports [:start, :status, :restart]
end

0 comments on commit 0a09fa0

Please sign in to comment.