<commit_before>#
# Cookbook Name:: optoro_monit
# Recipe:: default
#
# Copyright (C) 2014 Optoro Inc
#
# All rights reserved - Do Not Redistribute
#

include_recipe 'monit'

chef_gem 'chef-rewind'
require 'chef/rewind'

directory node['monit']['logdirectory'] do
  action :create
  recursive true
end

# override the default community version of the monitrc.erb file as it is not customizable enough
rewind :template => '/etc/monit/monitrc' do
  source 'optoro-monitrc.erb'
  cookbook_name 'optoro_monit'
end

cookbook_file '/etc/init.d/monit' do
  source 'monit-init'
  action :create
  notifies :restart, 'service[monit]', :delayed
end<commit_msg>removed the overriding of the init script - it wasn't necessary and was causing conflicts depending on what version of the community monit cookbook was used<commit_after>#
# Cookbook Name:: optoro_monit
# Recipe:: default
#
# Copyright (C) 2014 Optoro Inc
#
# All rights reserved - Do Not Redistribute
#

include_recipe 'monit'

chef_gem 'chef-rewind'
require 'chef/rewind'

directory node['monit']['logdirectory'] do
  action :create
  recursive true
end

# override the default community version of the monitrc.erb file as it is not customizable enough
rewind :template => '/etc/monit/monitrc' do
  source 'optoro-monitrc.erb'
  cookbook_name 'optoro_monit'
end
{'fraction_non_alphanumeric': 0.09298780487804878, 'fraction_numerical': 0.006097560975609756, 'mean_word_length': 4.9411764705882355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5271922', 'n_tokens_mistral': 447, 'n_tokens_neox': 436, 'n_words': 145}