#
# Cookbook Name:: wt_streaminglogreplayer
# Recipe:: undeploy
#
# Copyright 2012, Webtrends
#
# All rights reserved - Do Not Redistribute
#

log_dir      = "#{node['wt_common']['log_dir_linux']}/streaminglogreplayer"
install_dir  = "#{node['wt_common']['install_dir_linux']}/streaminglogreplayer"


runit_service "streaminglogreplayer" do
    action :disable
end 

service "streaminglogreplayer" do
  action [:stop, :disable]
end

directory "#{log_dir}" do
  recursive true
  action :delete
end

directory "#{install_dir}" do
  recursive true
  action :delete
end
#
# Cookbook Name:: wt_streaminglogreplayer
# Recipe:: undeploy
#
# Copyright 2012, Webtrends
#
# All rights reserved - Do Not Redistribute
#

log_dir      = "#{node['wt_common']['log_dir_linux']}/streaminglogreplayer"
install_dir  = "#{node['wt_common']['install_dir_linux']}/streaminglogreplayer"


runit_service "streaminglogreplayer" do
    action :disable
end 

# try to stop the service, but allow a failure without printing the error
service "streaminglogreplayer" do
  action [:stop, :disable]
  returns [0,1]
end

# force stop the service incase the stop failed
service "streaminglogreplayer" do
  action [:force-stop, :disable]
end

directory "#{log_dir}" do
  recursive true
  action :delete
end

directory "#{install_dir}" do
  recursive true
  action :delete
end
Fix the wt_streaminglogreplayer recipe to not bomb if the service won't stop
Fix the wt_streaminglogreplayer recipe to not bomb if the service won't stop


Former-commit-id: 7a4d8db7b93156794d7a27dc9356e9591441aee3 [formerly de0177ccfa39cdf08d5877547ce2a288eb4a4617] [formerly edc4bd0c00ece7a0185877366825e1ea85547301 [formerly 80ced9577bc84d604eca517d17d0240f1600023c [formerly e9a35dcd4110032f3ff82794971a1280eb7c39e0]]]
Former-commit-id: e7fb560a548aba14bd43779d7e20cc6e54c3e27a [formerly 5fbebfef4e7fe2adc7f36fab2bc4e784662e372f]
Former-commit-id: d3ab35b36b18ddf6147db90364fcb3956cb93309
Former-commit-id: cae4573c5197f758151ecb09ef3fbdd8bf63caf5