I've written a script which I trigger as a service. When I call service myservice start
the service starts fine. However, when the same service is triggered using chef, the service doesnt start.
My chef service code looks like this
service "myservice" do
supports :status => true, :restart => true, :reload => true
action [ :enable, :start ]
end
I call the script using knife bootstrap <ip> -r 'recipe[testservice]'
.
What am I missing here? Thanks for the help!
service[myservice] action start 172.16.13.251 (up to date)