3

I have this in my chef recipe:

service 'php5-fpm' do
  supports :restart => true
  action [ :enable, :start ]
end

However my recipe now barfs in Ubuntu 14.04, as "/etc/init.d/php5-fpm restart" does not work on Ubuntu 14.04 (it returns with 1 and there is no message).

How do I get my chef recipe to restart and manage the php5-fpm service?

2

Solved by adding the following to my service in chef:

"provider Chef::Provider::Service::Upstart"

This is really going to start getting annoying when some services let you use init.d and others force you to use upstart.

1
  • You can look forward to more fun as Ubuntu migrates to systemd. :-) – sciurus Apr 30 '14 at 16:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.