#
# 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.


Former-commit-id: b8bb2ad41e65f970d60480355998ba7080b87712 [formerly 2ba817cc6f8bc426fc75f3fed72d3e1c3d49ba5f] [formerly 5a9f228817c40c0c69c7d65f5f458bd34b624275 [formerly 3a411715a91657dc6fa02bf91123cf838bf39589 [formerly f44ae839af7b47e245dbaf79f369544b03778f4f]]]
Former-commit-id: bb02e7b9a5ac93924e1f8b5aa4d6f0fbe649ab72 [formerly 5d509d06ed582db44bf95065ecbcd51ef0f26fa2]
Former-commit-id: b1b4925e8030e4da849218866fa44c5b1af66ba4
Former-commit-id: 09f053ee8ffd230dd78ceae073e8bcb28535d0bf