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

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

runit_service "streamingmanagementservice" do
  action :disable
end

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

directory log_dir do
  recursive true
  action :delete
end

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

log_dir      = "#{node['wt_common']['log_dir_linux']}/streamingmanagementservice"
install_dir  = "#{node['wt_common']['install_dir_linux']}/streamingmanagementservice"
sv_dir       = "/etc/sv/streamingmanagementservice"
service_dir  = "/etc/service/streamingmanagementservice"

runit_service "streamingmanagementservice" do
  action :disable
end

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

directory log_dir do
  recursive true
  action :delete
end

directory install_dir do
  recursive true
  action :delete
end

directory sv_dir do
  recursive true
  action :delete
end

directory service_dir do
  recursive true
  action: delete
end


Stabilize sms deployment. Eliminates service start returning (1) error.
Stabilize sms deployment. Eliminates service start returning (1) error.
