[chef] service resource not creating a file


Chronological Thread 
  • From: Sachin Sagar Rai < >
  • To: chef < >
  • Subject: [chef] service resource not creating a file
  • Date: Sun, 27 May 2012 21:04:22 +0545


Hi Chefellas,

I have the following service resource defined in my recipe.

    service "unicorn_#{app['id']}" do
      provider Chef::Provider::Service::Init::Debian
      start_command "#{app['deploy_to']}/shared/scripts/unicorn start"
      stop_command "#{app['deploy_to']}/shared/scripts/unicorn stop"
      restart_command "#{app['deploy_to']}/shared/scripts/unicorn restart"
      status_command "#{app['deploy_to']}/shared/scripts/unicorn status"
      supports :start => true, :stop => true, :restart => true, :status => true
      action :nothing
    end

According to the docs at wiki http://wiki.opscode.com/display/chef/Resources#Resources-Service, it should create a file at `/etc/init.d/unicorn_myapp` file.

But its not creating that file.

I'm on chef-0.10.8 with ruby19

What might be wrong?

-------------------------------------------
@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.tumblr.com
Sent with Sparrow




Archive powered by MHonArc 2.6.16.

§