lib/chef/provider/service/daemontools.rb in chef-provider-service-daemontools-1.0.2 vs lib/chef/provider/service/daemontools.rb in chef-provider-service-daemontools-1.0.3
- old
+ new
@@ -53,10 +53,10 @@
end
def disable_service
if @current_resource.enabled
service_link = "#{@new_resource.service_dir}/#{@new_resource.service_name}"
- shell_out!("#{@svc_command} -dx . log; rm -f #{service_link}", :cwd => service_link)
+ shell_out!("rm -f #{service_link} && #{@svc_command} -dx . log", :cwd => service_link)
end
end
def start_service
if @current_resource.enabled && !@current_resource.running