#
# 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
    run_restart false
end 

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

# force stop the service in case the stop failed
service "streaminglogreplayer" do
  action [:stop]
  stop_command "force-stop"
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
  run_restart false
end

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

# force stop the service in case the stop failed
service "streaminglogreplayer" do
  action [:stop]
  stop_command "force-stop"
end

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

directory "#{install_dir}" do
  recursive true
  action :delete
end
Fix uninstall script formatting in log replayer
Fix uninstall script formatting in log replayer


Former-commit-id: ae5542a386c0ef37216073dfad17c1d797766740 [formerly 79c92eefab9334f7cb22b4c27a1f9bd11a8f4d61] [formerly f745e74da46b87f04cf253632c63e728ea0b2600 [formerly 69afb9f8c5bc23f3657e6321fc2f6dabd94a6fbb]]
Former-commit-id: af2652e67baa3e92588d858163766edac1da99fd [formerly 4547b327348c49efd0122a32b511c67bee2df716]
Former-commit-id: 1cadab6730a6ebe8f1155839d841fdcbb5acfc05