<commit_before>#
#
# Cookbook:: doozerd
# Recipe:: _service
#
# Manage the Doozerd service
#



template "/etc/init.d/doozerd" do
  mode 0755
end<commit_msg>update service recipe with the template and service code<commit_after>#
#
# Cookbook:: doozerd
# Recipe:: _service
#
# Manage the Doozerd service
#


template "#{node[:doozerd][:init_path]}/doozerd" do
  notifies :restart, "service[doozerd]"
  source "doozer_init.erb"
  mode 0755
  # for now use the attribute, some wrapper could use search/discovery 
  # and probably should.
  variables( 
    :doozer_nodes => node[:doozerd][:nodes],
    :doozer_host  => node[:doozerd][:host],
    :doozer_port  => node[:doozerd][:port]
  )
end


service "doozerd" do 
  action :start
end


{'fraction_non_alphanumeric': 0.12806539509536785, 'fraction_numerical': 0.010899182561307902, 'mean_word_length': 4.326086956521739, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4511193', 'n_tokens_mistral': 297, 'n_tokens_neox': 268, 'n_words': 68}